Boost logo

Boost :

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


On 8/31/2013 1:22 PM, Phil Bouchard wrote:
>
> So you have a cyclic list:
>
> +-> 1 -> 2 -> 3 -+
> | |
> +----------------+
>
> 1 will be called for destruction first but the pointer to 2 and then 3
> will deleted beforehand because they are their members. The pointer of
> 3 to 1 will be ineffective.

And if you have:

+-> 1 -+ +-> 2 -+
| | | |
+------+ +------+

1 will be deleted then 2.

-Phil


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