Boost logo

Boost :

Subject: Re: [boost] [Block Pointer] Review Request
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-05-01 18:05:16


On 01/05/2011 20:39, Phil Bouchard wrote:
> On 5/1/2011 10:52 AM, Mathias Gaunard wrote:
>>
>> The documentation doesn't seem to address the problems cycles cause with
>> destructors, could you maybe write a bit about that?
>
> No problem. I just added a noted to the cyclic section:
> https://svn.boost.org/svn/boost/sandbox/block_ptr/libs/smart_ptr/doc/rationale.html#cyclicism

This is not what I meant. When you have a cycle, the order in which
destructors are called cannot be specified.

This makes it impossible to guarantee that the object held by a
block_ptr won't have been destructed in the destructor of a class that
has a block_ptr as a member.
Meaning many uses of block_ptr could easily turn out to be invalid, and
that not everything is suitable for use with block_ptr.


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