Boost C++ Libraries: Ticket #3381: Compiler warning for is_signed https://svn.boost.org/trac10/ticket/3381 <p> Hi, </p> <p> with g++ 4.2.4, I get the following warning when using boost::is_signed&lt;long long unsigned int&gt; with -Wall -Wextra: </p> <p> type_traits/is_signed.hpp:33: warning: comparison of unsigned expression &lt; 0 is always false </p> <p> I fixed this for myself by replacing </p> <p> (static_cast&lt;no_cv_t&gt;(-1) &lt; 0) </p> <p> by </p> <p> !(static_cast&lt;no_cv_t&gt;(-1) &gt; 0) </p> <p> Regards, </p> <p> Roland </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3381 Trac 1.4.3 John Maddock Tue, 01 Sep 2009 12:24:09 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3381#comment:1 https://svn.boost.org/trac10/ticket/3381#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/55957" title="Fix warnings emitted by gcc when building with -Wall -Wextra. Fixes #3381.">[55957]</a>) Fix warnings emitted by gcc when building with -Wall -Wextra. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3381" title="#3381: Bugs: Compiler warning for is_signed (closed: fixed)">#3381</a>. </p> Ticket