Opened 12 years ago

Closed 12 years ago

#5052 closed Bugs (invalid)

ptree's front() returns wrong data when using xml_parser::no_comments flag

Reported by: brokensword@… Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost 1.45.0 Severity: Problem
Keywords: xml Cc:

Description

Launch attached code.

Expected: Node value retrieved and printed.

Actual: terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::property_tree::ptree_bad_path> >'

what(): No such node (name)

Attachments (2)

xml_parser_bug.cpp (646 bytes ) - added by Robert Ayrapetyan <brokensword@…> 12 years ago.
source code
test.xml (123 bytes ) - added by Robert Ayrapetyan <brokensword@…> 12 years ago.
dummy xml file to reproduce bug

Download all attachments as: .zip

Change History (4)

by Robert Ayrapetyan <brokensword@…>, 12 years ago

Attachment: xml_parser_bug.cpp added

source code

by Robert Ayrapetyan <brokensword@…>, 12 years ago

Attachment: test.xml added

dummy xml file to reproduce bug

comment:1 by Robert Ayrapetyan <brokensword@…>, 12 years ago

Misuse of logical\bitwise operator when composing resulting flag, pls close the ticket.

comment:2 by Robert Ayrapetyan <brokensword@…>, 12 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.