Re: [Boost-bugs] [Boost C++ Libraries] #5598: boost/property_tree/detail/json_parser_write.hpp:35: warning: comparison is always true due to limited range of data type

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5598: boost/property_tree/detail/json_parser_write.hpp:35: warning: comparison is always true due to limited range of data type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-25 22:27:37


#5598: boost/property_tree/detail/json_parser_write.hpp:35: warning: comparison is
always true due to limited range of data type
-------------------------------+---------------------------
  Reporter: benoit@… | Owner: cornedbee
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: property_tree
   Version: Boost 1.46.1 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by Matthieu Vachon <matthieu.o.vachon@…>):

 @Shane

 I attached an updated version of the patch to this tracker.

 However, the patch fails on my project because I had a double include of
 `<boost/property_tree/json_parser.hpp>` in two different compilation
 units. This caused my program build to fail due to a multiple definition
 for the `check_is_ascii` method. I created a simple test case that can be
 used to reproduce/debug the problem, I can send it to you if you want to.

 If I have a time, I will check how this could be solved. For now, I just
 ensured that the `json_parser.hpp` file is included only once in my
 codebase.

 Expect for this, your patch seems to work like a charm. Will report back
 if I find any problem with it.

 Regards,
 Matt

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5598#comment:5>
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:13 UTC