Re: [Boost-bugs] [Boost C++ Libraries] #6785: read_json does not compile on GCC 4.7.0 with std=c++11

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6785: read_json does not compile on GCC 4.7.0 with std=c++11
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-11 08:05:28


#6785: read_json does not compile on GCC 4.7.0 with std=c++11
--------------------------------------------------------+-------------------
  Reporter: Wojciech Cierpucha <cierpuchaw@…> | Owner: cornedbee
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: property_tree
   Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords: ptree read_json
--------------------------------------------------------+-------------------

Comment (by pierre.imai@…):

 I noticed the same problem, but managed to fix it by simply replacing

 {{{#!cpp
 c.stack.back()->push_back(std::make_pair(c.name, Str(b, e)));
 }}}

 with

 {{{#!cpp
 c.stack.back()->push_back(std::make_pair(c.name, Ptree(Str(b, e))));
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6785#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:09 UTC