[Boost-bugs] [Boost C++ Libraries] #5524: Ptree walk_path can fail to locate desired path

Subject: [Boost-bugs] [Boost C++ Libraries] #5524: Ptree walk_path can fail to locate desired path
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-06 15:56:33


#5524: Ptree walk_path can fail to locate desired path
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 Take a situation with child structure as follows:[[BR]]
 a.b[[BR]]
 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.

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