Boost C++ Libraries: Ticket #8399: owens_t_T6 misplaced parenthesis https://svn.boost.org/trac10/ticket/8399 <p> In <a href="http://www.boost.org/doc/libs/1_53_0/boost/math/special_functions/owens_t.hpp">http://www.boost.org/doc/libs/1_53_0/boost/math/special_functions/owens_t.hpp</a> in function owens_t_T6 you will see the line... </p> <blockquote> <p> const <a class="missing wiki">RealType</a> r = atan2(y, static_cast&lt;<a class="missing wiki">RealType</a>&gt;(1 + a) ); </p> </blockquote> <p> which should have been </p> <blockquote> <p> const <a class="missing wiki">RealType</a> r = atan2(y, static_cast&lt;<a class="missing wiki">RealType</a>&gt;(1) + a ); </p> </blockquote> <p> It probably doesn't matter much, though. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8399 Trac 1.4.3 John Maddock Thu, 18 Apr 2013 18:02:26 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/8399#comment:1 https://svn.boost.org/trac10/ticket/8399#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">invalid</span> </li> </ul> <p> Ah no, the original code is correct: </p> <p> We require mixed arithmetic between the floating point type and all builtin arithmetic types as part of our conceptual requirements, so 1 + a is always supported. </p> <p> The cast is there in case the type of "a" uses expression templates (ie 1 + a returns a type other than the type of "a"). </p> Ticket