Modify

Opened 6 years ago

Closed 6 years ago

#5813 closed Bugs (fixed)

[graph] csr_graph_test failing on MSVC

Reported by: Richard Webb <richard.webb@…> Owned by: Jeremiah Willcock
Milestone: To Be Determined Component: graph
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The csr_graph_test test is failing on the MS compilers due to a conflict between std::numeric_limits<T>::max and the max macro -> see http://tinyurl.com/3g22uxe for the official test results.

changing line 27 of relax.hpp from

closed_plus() : inf(std::numeric_limits<T>::max()) { }

to

closed_plus() : inf((std::numeric_limits<T>::max)()) { }

allows the test to pass.

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by Jeremiah Willcock

Resolution: fixed
Status: newclosed

(In [74075]) Added parentheses around call to numeric_limits::max; fixes #5813

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jeremiah Willcock.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.