Boost C++ Libraries: Ticket #8584: Warning: is_nan_helper return [bool] but isnan is [int] https://svn.boost.org/trac10/ticket/8584 <p> fpclassify.hpp </p> <p> is_nan_helper </p> <p> 1&gt;d:\projects\mengine\dependencies\boost\boost\math\special_functions\fpclassify.hpp(101): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning) 1&gt; d:\projects\mengine\dependencies\boost\boost\math\special_functions\fpclassify.hpp(578) : see reference to function template instantiation 'bool boost::math_detail::is_nan_helper&lt;float&gt;(T,const boost::true_type &amp;)' being compiled 1&gt; with 1&gt; [ 1&gt; T=float 1&gt; ] </p> <p> please remove this warning </p> <p> maybe - </p> <p> return (bool)isnan(t); </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8584 Trac 1.4.3 Levchenko Yuriy <irov13@…> Sat, 18 May 2013 12:13:05 GMT cc set https://svn.boost.org/trac10/ticket/8584#comment:1 https://svn.boost.org/trac10/ticket/8584#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">irov13@…</span> added </li> </ul> Ticket Levchenko Yuriy <irov13@…> Sat, 18 May 2013 12:24:25 GMT summary changed https://svn.boost.org/trac10/ticket/8584#comment:2 https://svn.boost.org/trac10/ticket/8584#comment:2 <ul> <li><strong>summary</strong> <span class="trac-field-old">Warning:</span> → <span class="trac-field-new">Warning: is_nan_helper return [bool] but isnan is [int]</span> </li> </ul> Ticket John Maddock Sat, 18 May 2013 17:54:49 GMT <link>https://svn.boost.org/trac10/ticket/8584#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8584#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84355" title="Try and suppress msvc warning. Refs #8584.">[84355]</a>) Try and suppress msvc warning. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8584" title="#8584: Bugs: Warning: is_nan_helper return [bool] but isnan is [int] (closed: fixed)">#8584</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sat, 18 May 2013 17:55:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8584#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8584#comment:4</guid> <description> <p> Can you please try the patch referenced in the above changeset and report back? </p> <p> Many thanks. </p> </description> <category>Ticket</category> </item> <item> <author>Levchenko Yuriy <irov13@…></author> <pubDate>Sun, 19 May 2013 07:20:20 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8584#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8584#comment:5</guid> <description> <p> patch work fine <sup></sup> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Thu, 13 Jun 2013 16:12:00 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8584#comment:6 https://svn.boost.org/trac10/ticket/8584#comment:6 <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> Ticket