Opened 10 years ago
Last modified 9 years ago
#8021 new Bugs
gcc: ptree_utils.hpp:76: warning: comparison is always false due to limited range of data type [-Wtype-limits] — at Version 2
Reported by: | anonymous | Owned by: | Sebastian Redl |
---|---|---|---|
Milestone: | To Be Determined | Component: | property_tree |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | Cc: | mateusz@… |
Description (last modified by )
gcc version 4.7.2 (Built by MinGW-builds project) i686-w64-mingw32
yields
boost/property_tree/detail/ptree_utils.hpp: In instantiation of 'std::string boost::property_tree::detail::narrow(const Ch*) [with Ch = wchar_t; std::string = std::basic_string<char>]': boost/property_tree/string_path.hpp:64:36: required from here boost/property_tree/detail/ptree_utils.hpp:76:13: warning: comparison is always false due to limited range of data type [-Wtype-limits] 76: if (*text < 0 || *text > (std::numeric_limits<char>::max)())
Change History (3)
by , 10 years ago
Attachment: | boost-8021a.diff added |
---|
comment:1 by , 9 years ago
I also faced this warning, with some Arm compiler. I applied a temporary fix by adding #pragma Macros in the header file.
comment:2 by , 9 years ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
C++11-only patch to fix the warning