Subject: [Boost-bugs] [Boost C++ Libraries] #11839: JSON parser does not work with "boost::any" as value type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-10 22:46:12
#11839: JSON parser does not work with "boost::any" as value type
------------------------------+---------------------------
Reporter: milacher@⦠| Owner: cornedbee
Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
Version: Boost 1.59.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------
I have a property_tree specialization with boost::any as value type, as
such:
typedef boost::property_tree::basic_ptree<std::string, boost::any>
AnyPTree;
With the help of a set of "translator_between" specializations, and an
operator
template <class CharT, class Traits, class Allocator>
boost::any& operator += (
boost::any& lhs,
const std::basic_string<CharT, Traits, Allocator>& rhs
);
I was able to use all the parsers in property_tree in boost 1.58. However
the new JSON parser in 1.59 assumes that the value type of the
property_tree is string-like and does not compile for my specialization
anymore (standard_callbacks is the offending code).
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11839> 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