Opened 11 years ago
Closed 9 years ago
#6423 closed Bugs (duplicate)
json_parser_read.hpp bug with libc++
| Reported by: | 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)
Change History (6)
by , 11 years ago
| Attachment: | source.cpp added |
|---|
by , 11 years ago
by , 11 years ago
comment:1 by , 11 years ago
| Component: | None → property_tree |
|---|---|
| Milestone: | To Be Determined → Boost 1.50.0 |
| Owner: | set to |
| Status: | new → assigned |
comment:2 by , 11 years ago
Note:
See TracTickets
for help on using tickets.

g++ 4.7 report some error at this line