[Boost-bugs] [Boost C++ Libraries] #4802: C4127 in traits_extension

Subject: [Boost-bugs] [Boost C++ Libraries] #4802: C4127 in traits_extension
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-29 17:37:24


#4802: C4127 in traits_extension
-------------------------------------------+--------------------------------
 Reporter: gast128 <gast128@…> | Owner: jsiek
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: tokenizer
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
-------------------------------------------+--------------------------------
 on VS2003/VS2008:

 boost\token_functions.hpp(220) : warning C4127: conditional expression is
 constant

  struct traits_extension : public traits {
     typedef typename traits::char_type char_type;
     static bool isspace(char_type c)
     {
 #if !defined(BOOST_NO_CWCTYPE)
       if (sizeof(char_type) == 1) <--
         return std::isspace(c) != 0;
       else
         return std::iswspace(c) != 0;
 #else
       return static_cast< unsigned >(c) <= 255 && std::isspace(c) != 0;
 #endif
     }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4802>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC