Re: [Boost-bugs] [Boost C++ Libraries] #11502: narrow_encoding: -Wtype-limits warning is reported

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11502: narrow_encoding: -Wtype-limits warning is reported
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-18 18:03:02


#11502: narrow_encoding: -Wtype-limits warning is reported
-------------------------------+---------------------------
  Reporter: davido | Owner: cornedbee
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: property_tree
   Version: Boost 1.59.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by shane.turner@…):

 We see the following error when not compiling with GCC 4.4.7 on CentOS 6
 without -DNDEBUG:

 .../boost/property_tree/detail/json_parser/narrow_encoding.hpp: In member
 function ‘char
 boost::property_tree::json_parser::detail::utf8_utf8_encoding::to_internal_trivial(char)
 const’:
 .../boost/property_tree/detail/json_parser/narrow_encoding.hpp:71: error:
 comparison is always true due to limited range of data type

 Our solution is to remove the assert with a patch.

 I'd love if this could be addressed in Boost 1.61.0.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11502#comment:1>
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:19 UTC