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 Initial Version
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
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]
*text > (std::numeric_limits<char>::max)()) |
Note:
See TracTickets
for help on using tickets.
C++11-only patch to fix the warning