Boost C++ Libraries: Ticket #4802: C4127 in traits_extension https://svn.boost.org/trac10/ticket/4802 <p> on VS2003/VS2008: </p> <p> boost\token_functions.hpp(220) : warning C4127: conditional expression is constant </p> <blockquote> <p> struct traits_extension : public traits { </p> <blockquote> <p> typedef typename traits::char_type char_type; static bool isspace(char_type c) { </p> </blockquote> </blockquote> <p> #if !defined(BOOST_NO_CWCTYPE) </p> <blockquote> <p> if (sizeof(char_type) == 1) &lt;-- </p> <blockquote> <p> return std::isspace(c) != 0; </p> </blockquote> <p> else </p> <blockquote> <p> return std::iswspace(c) != 0; </p> </blockquote> </blockquote> <p> #else </p> <blockquote> <p> return static_cast&lt; unsigned &gt;(c) &lt;= 255 &amp;&amp; std::isspace(c) != 0; </p> </blockquote> <p> #endif </p> <blockquote> <p> } </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4802 Trac 1.4.3 Matthew Bradbury <matt-bradbury@…> Sat, 30 Oct 2010 12:06:06 GMT <link>https://svn.boost.org/trac10/ticket/4802#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4802#comment:1</guid> <description> <p> Duplicate of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4649" title="#4649: Bugs: token_functions.hpp (220) : fix for warning C4127 conditional ... (closed: fixed)">#4649</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Wed, 06 Apr 2011 23:26:36 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4802#comment:2 https://svn.boost.org/trac10/ticket/4802#comment:2 <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">duplicate</span> </li> </ul> Ticket