[Boost-bugs] [Boost C++ Libraries] #11743: json parser cannot be compiled with -DNDEBUG

Subject: [Boost-bugs] [Boost C++ Libraries] #11743: json parser cannot be compiled with -DNDEBUG
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-21 13:11:55


#11743: json parser cannot be compiled with -DNDEBUG
-------------------------------------------------+-------------------------
 Reporter: Marco Clemencic <marco.clemencic@…> | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: To Be Determined | Component:
  Version: Boost 1.59.0 | property_tree
 Keywords: | Severity: Regression
-------------------------------------------------+-------------------------
 In include/boost/property_tree/detail/json_parser/standard_callbacks.hpp,
 standard_callbacks::new_tree make use of assert when error conditions are
 detected.

 Unfortunately, when -DNDEBUG is used during compilation, assert calls
 disappear, thus making the code of standard_callbacks::new_tree incorrect.

 We spot the problem thanks to the option -Werror=return-type that fired
 when hitting the end of standard_callbacks::new_tree seeing that there was
 not return statement.

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