g++: Comparison is always true
jmlemetayer opened this issue · comments
With some g++ (version 5.3.0) I got this warning:
/home/jmlemetayer/development/misc/cpptoml/include/cpptoml.h: In static member function ‘static std::__cxx11::string cpptoml::toml_writer::escape_string(const string&)’:
/home/jmlemetayer/development/misc/cpptoml/include/cpptoml.h:3063:26: warning: comparison is always true due to limited range of data type [-Wtype-limits]
else if (*it >= 0x0000 && *it <= 0x001f)
^
This is raised by this line:
Line 3063 in 2051836