Opened 11 years ago

Closed 9 years ago

#6423 closed Bugs (duplicate)

json_parser_read.hpp bug with libc++

Reported by: kyle.tarplee@… Owned by: Sebastian Redl
Milestone: Boost 1.50.0 Component: property_tree
Version: Boost 1.48.0 Severity: Problem
Keywords: ptree libc++ Cc:

Description

When building with the attached program with clang++ (svn) and libc++ I get the following error. I believe it's a error in boost (as opposed to the library or the compiler).

I think line 105 of boost/property_tree/detail/json_parser_read.hpp should be: c.stack.back()->push_back(std::make_pair(c.name, Ptree(Str(b, e)))); and not c.stack.back()->push_back(std::make_pair(c.name, Str(b, e)));

The second argument to make_pair should be a Ptree not a string. Right?

Attachments (3)

source.cpp (167 bytes ) - added by anonymous 11 years ago.
build.sh (222 bytes ) - added by anonymous 11 years ago.
error.txt (15.9 KB ) - added by anonymous 11 years ago.

Download all attachments as: .zip

Change History (6)

by anonymous, 11 years ago

Attachment: source.cpp added

by anonymous, 11 years ago

Attachment: build.sh added

by anonymous, 11 years ago

Attachment: error.txt added

comment:1 by Sebastian Redl, 11 years ago

Component: Noneproperty_tree
Milestone: To Be DeterminedBoost 1.50.0
Owner: set to Sebastian Redl
Status: newassigned

comment:2 by anonymous, 11 years ago

g++ 4.7 report some error at this line

comment:3 by Sebastian Redl, 9 years ago

Resolution: duplicate
Status: assignedclosed

Duplicate of bug #6785

Note: See TracTickets for help on using tickets.