Boost C++ Libraries: Ticket #5813: [graph] csr_graph_test failing on MSVC https://svn.boost.org/trac10/ticket/5813 <p> The csr_graph_test test is failing on the MS compilers due to a conflict between std::numeric_limits&lt;T&gt;::max and the max macro -&gt; see <a class="ext-link" href="http://tinyurl.com/3g22uxe"><span class="icon">​</span>http://tinyurl.com/3g22uxe</a> for the official test results. </p> <p> changing line 27 of relax.hpp from </p> <pre class="wiki">closed_plus() : inf(std::numeric_limits&lt;T&gt;::max()) { } </pre><p> to </p> <pre class="wiki">closed_plus() : inf((std::numeric_limits&lt;T&gt;::max)()) { } </pre><p> allows the test to pass. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5813 Trac 1.4.3 Jeremiah Willcock Fri, 26 Aug 2011 17:33:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5813#comment:1 https://svn.boost.org/trac10/ticket/5813#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/74075" title="Added parentheses around call to numeric_limits::max; fixes #5813">[74075]</a>) Added parentheses around call to numeric_limits::max; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5813" title="#5813: Bugs: [graph] csr_graph_test failing on MSVC (closed: fixed)">#5813</a> </p> Ticket