Boost C++ Libraries: Ticket #11502: narrow_encoding: -Wtype-limits warning is reported https://svn.boost.org/trac10/ticket/11502 <p> -Wtype-limit is reported on this assert: </p> <blockquote> <p> char to_internal_trivial(char c) const { </p> <blockquote> <p> assert(c &lt;= 0x7f); &lt;=== Type limit return c; </p> </blockquote> <p> } </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11502 Trac 1.4.3 shane.turner@… Fri, 18 Dec 2015 18:03:02 GMT <link>https://svn.boost.org/trac10/ticket/11502#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11502#comment:1</guid> <description> <p> We see the following error when not compiling with GCC 4.4.7 on CentOS 6 without -DNDEBUG: </p> <p> .../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 </p> <p> Our solution is to remove the assert with a patch. </p> <p> I'd love if this could be addressed in Boost 1.61.0. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Wed, 10 Feb 2016 12:51:31 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/11502#comment:2 https://svn.boost.org/trac10/ticket/11502#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Should be fixed by commit 6a033ffca2b8219bb581c013c3bbd6c31f8151ff </p> Ticket