Boost logo

Boost :

Subject: Re: [boost] help with boost::property_tree erasing nested entries please
From: Bernd Prager (bernd_at_[hidden])
Date: 2011-10-04 07:14:38


Thank you Sebastian. That will do.

Sent from my iPhone

On Oct 4, 2011, at 5:33 AM, Sebastian Redl <sebastian.redl_at_[hidden]> wrote:

> 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
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


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