[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-bugs
Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8465: ptree get_child should not throw an exception on empty
From: "Boost C++ Libraries" <noreply () lists ! boost ! org>
Date: 2016-05-30 16:41:39
Message-ID: 087.ffc4d1d2cd4c74a7bab5abb3e2d51a68 () lists ! boost ! org
[Download RAW message or body]
#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.
_______________________________________________
Boost-bugs mailing list
Boost-bugs@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic