[Boost-bugs] [Boost C++ Libraries] #8021: gcc: ptree_utils.hpp:76: warning: comparison is always false due to limited range of data type [-Wtype-limits]

Subject: [Boost-bugs] [Boost C++ Libraries] #8021: gcc: ptree_utils.hpp:76: warning: comparison is always false due to limited range of data type [-Wtype-limits]
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-09 20:00:59


#8021: gcc: ptree_utils.hpp:76: warning: comparison is always false due to limited
range of data type [-Wtype-limits]
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 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)())

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8021>
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:12 UTC