Ticket #5813 (closed Bugs: fixed)

Opened 6 years ago

Last modified 6 years ago

[graph] csr_graph_test failing on MSVC

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


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 for the official test results.

changing line 27 of relax.hpp from

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


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

allows the test to pass.


Change History

comment:1 Changed 6 years ago by jewillco

  • Status changed from new to closed
  • Resolution set to fixed

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


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

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

Note: See TracTickets for help on using tickets.