Boost C++ Libraries: Ticket #6723: calling rand() without std:: qualifier after including <cstdlib> https://svn.boost.org/trac10/ticket/6723 <p> File libs/heap/test/mutable_heap_tests.hpp includes <code>&lt;cstdlib&gt;</code> but on line 235 makes a call to rand() without the <code>std::</code> qualifier. Although the code compiles using gcc, a standard-conforming compiler will not find <code>rand()</code> in the global namespace, and the compilation will fail (and does fail using some popular compilers). </p> <p> The call should be qualified as <code>std::rand()</code> to allow the code to compile with all compilers. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6723 Trac 1.4.3 timblechmann Wed, 21 Mar 2012 17:29:14 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6723#comment:1 https://svn.boost.org/trac10/ticket/6723#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> thanks for reporting, fixed </p> Ticket