Boost C++ Libraries: Ticket #5176: test_assignment assumes fabs(float) https://svn.boost.org/trac10/ticket/5176 <p> As per [lib.c.math] paragraphs 5 and 6, there are float and long double overloads for fabs(): </p> <pre class="wiki"> float fabs (float); long double fabs (long double); </pre><p> libstdc++ apparently does not have the required overloads and is seems </p> <blockquote> <p> libs/numeric/ublas/test/test_assignment.cpp </p> </blockquote> <p> relies on this. </p> <p> Patch provided. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5176 Trac 1.4.3 hstong@… Thu, 10 Feb 2011 20:41:14 GMT attachment set https://svn.boost.org/trac10/ticket/5176 https://svn.boost.org/trac10/ticket/5176 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_assignment.cpp.patch</span> </li> </ul> <p> Add cast so fabs() call is proper. </p> Ticket Steven Watanabe Fri, 11 Feb 2011 00:29:31 GMT <link>https://svn.boost.org/trac10/ticket/5176#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5176#comment:1</guid> <description> <p> It would be better to cast to double instead of float. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Fri, 11 Feb 2011 00:30:28 GMT</pubDate> <title>owner, component changed https://svn.boost.org/trac10/ticket/5176#comment:2 https://svn.boost.org/trac10/ticket/5176#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Gunter</span> </li> <li><strong>component</strong> <span class="trac-field-old">numeric</span> → <span class="trac-field-new">uBLAS</span> </li> </ul> Ticket hstong@… Fri, 19 Aug 2011 15:52:53 GMT <link>https://svn.boost.org/trac10/ticket/5176#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5176#comment:3</guid> <description> <p> Yes, this should have been a cast to double. </p> </description> <category>Ticket</category> </item> <item> <author>j.ungermann@…</author> <pubDate>Wed, 19 Sep 2012 19:48:53 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5176#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5176#comment:4</guid> <description> <p> This breaks a couple of tests with non-gcc compilers. So one should call it a bug. A different fix might be calling std::abs instead of std::fabs. </p> </description> <category>Ticket</category> </item> </channel> </rss>