Opened 11 years ago

#5524 new Bugs

Ptree walk_path can fail to locate desired path

Reported by: anonymous Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost 1.46.1 Severity: Problem
Keywords: Cc:

Description

Take a situation with child structure as follows:
a.b
a.b.c

If get_child is used and it calls walk_path to navigate this to locate a.b.c it will fail with an exception. I'd argue it should explore other children (besides only 1st) if present before giving up and throwing the exception. In that case the recursion pops from the 1st 'b' and also tries the 2nd 'b' path (or any other 'b') and then finds a match on 'c' which is returned. Currently have to manually walk the XML represented tree and never use the path accessors because of this issue.

Change History (0)

Note: See TracTickets for help on using tickets.