Boost C++ Libraries: Ticket #10950: Missing std:: qualifier on sqrt calls in boost/random/non_central_chi_squared_distribution.hpp https://svn.boost.org/trac10/ticket/10950 <p> Compiling libs/random/test/test_non_central_chi_squared_distribution.cpp on Solaris 11.2 with Oracle Solaris Studio12.4 using -library=stlport4, we see the following error: "../boost/random/non_central_chi_squared_distribution.hpp", line 149: Error: The function "sqrt" must have a prototype. </p> <p> In file boost/random/non_central_chi_squared_distribution.hpp, the following change resolves the issue. diff ./non_central_chi_squared_distribution.hpp ./non_central_chi_squared_distribution.hpp_new 18a19 </p> <blockquote class="citation"> <p> #include &lt;cmath&gt; </p> </blockquote> <p> 149c150 &lt; <a class="missing wiki">RealType</a> term1 = _z + sqrt(_param.lambda()); --- </p> <blockquote class="citation"> <blockquote> <p> <a class="missing wiki">RealType</a> term1 = _z + std::sqrt(_param.lambda()); </p> </blockquote> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10950 Trac 1.4.3 Steven Watanabe Sat, 13 Feb 2016 15:58:39 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10950#comment:1 https://svn.boost.org/trac10/ticket/10950#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> Fixed in <a class="ext-link" href="https://github.com/boostorg/random/commit/394439ae887611944d424558009c66ef1166af49"><span class="icon">​</span>https://github.com/boostorg/random/commit/394439ae887611944d424558009c66ef1166af49</a> </p> Ticket