Opened 12 years ago

Closed 12 years ago

#4802 closed Bugs (duplicate)

C4127 in traits_extension

Reported by: gast128 <gast128@…> Owned by: jsiek
Milestone: To Be Determined Component: tokenizer
Version: Boost 1.44.0 Severity: Problem
Keywords: Cc:

Description

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

}

Change History (2)

comment:1 by Matthew Bradbury <matt-bradbury@…>, 12 years ago

Duplicate of #4649

comment:2 by Steven Watanabe, 12 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.