Boost logo

Boost :

Subject: Re: [boost] help with boost::property_tree erasing nested entries please
From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2011-10-04 05:33:46


On 03.10.2011 16:52, Bernd Prager wrote:
> All,
>
> I would appreciate some help with erasing a nested node entry in
> property_tree.
> Below is my example. (2) works, but only erases an entire tree. (1)
> doesn't but it's really what I want.
>
> Thank you for any help. (I'm sorry, the documentation is not very
> verbose on this topic.)
I'm afraid there is no simple way to do this. There's no path-based
erase function. So you can only do this:

props.get("db").erase("name");

Sebastian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk