Boost logo

Boost :

Subject: Re: [boost] [block_ptr] & Java
From: Phil Bouchard (philippe_at_[hidden])
Date: 2013-08-31 12:16:26


On 8/31/2013 11:48 AM, Phil Bouchard wrote:
> On 8/31/2013 11:14 AM, Phil Bouchard wrote:
>>
>> It keeps track of the order of construction and so their are deleted in
>> the order of construction so that their members are deleted first. It
>> also blocks before an attempt to delete a heap object that is already
>> being marked for deletion as you can see in ~block_ptr():
>> https://svn.boost.org/svn/boost/sandbox/block_ptr/boost/block_ptr.hpp
>
> *It keeps track of the order of construction and so they are deleted...

So if you have a cyclic list, it will be deleted in the correct order.

-Phil


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