Re: [Boost-bugs] [Boost C++ Libraries] #8465: ptree get_child should not throw an exception on empty sets

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8465: ptree get_child should not throw an exception on empty sets
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-30 16:41:39


#8465: ptree get_child should not throw an exception on empty sets
-----------------------------------------------+---------------------------
  Reporter: Dale Stansberry <stansberrydv@…> | Owner: cornedbee
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: property_tree
   Version: Boost 1.53.0 | Severity: Problem
Resolution: invalid | Keywords:
-----------------------------------------------+---------------------------

Comment (by anonymous):

 I agree with Dale and additionally the workaround doesn't work anymore for
 me. Instead I have to do

 {{{
 ptree empty_tree;
 for (const auto& c : tree.get_child("path.to.child", empty_tree)) {}
 }}}

 ugly:(

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8465#comment:4>
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:20 UTC