Boost C++ Libraries: Ticket #5729: Missing static_cast in fpt_limits https://svn.boost.org/trac10/ticket/5729 <p> Using Boost.Test with e_float (in sandbox, which requires always explicit conversion) reveals that a static_cast is missing in struct fpt_limits in floating_point_comparison: </p> <blockquote> <p> static FPT min_value() { </p> <blockquote> <p> return std::numeric_limits&lt;FPT&gt;::is_specialized </p> <blockquote> <p> ? (std::numeric_limits&lt;FPT&gt;::min)() : 0; </p> </blockquote> </blockquote> <p> } </p> </blockquote> <p> should use </p> <blockquote> <p> static FPT min_value() </p> <blockquote> <p> { </p> <blockquote> <p> return std::numeric_limits&lt;FPT&gt;::is_specialized </p> <blockquote> <p> ? (std::numeric_limits&lt;FPT&gt;::min)() : static_cast&lt;FPT&gt;(0); </p> </blockquote> </blockquote> <p> } </p> </blockquote> </blockquote> <p> Oh and there are some tabs :-( </p> <p> Compiles and seem to work OK with this change. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5729 Trac 1.4.3 Gennadiy Rozental Tue, 18 Oct 2011 09:25:41 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5729#comment:1 https://svn.boost.org/trac10/ticket/5729#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/75036" title="Added missing static cast for non standard FPT Fixes #5729">[75036]</a>) Added missing static cast for non standard FPT Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5729" title="#5729: Bugs: Missing static_cast in fpt_limits (closed: fixed)">#5729</a> </p> Ticket Gennadiy Rozental Tue, 18 Oct 2011 09:27:24 GMT <link>https://svn.boost.org/trac10/ticket/5729#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5729#comment:2</guid> <description> <p> Did not find any tabs </p> </description> <category>Ticket</category> </item> <item> <author>glesaaen@…</author> <pubDate>Tue, 16 Jun 2015 18:24:34 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5729#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5729#comment:3</guid> <description> <p> Is there a reason this still hasn't made it to the release version of boost as of 1.58? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Raffi Enficiaud</dc:creator> <pubDate>Tue, 07 Jul 2015 08:25:25 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/5729#comment:4 https://svn.boost.org/trac10/ticket/5729#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.59.0</span> </li> </ul> Ticket