Subject: Re: [boost] [Block Pointer] Review Request
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2011-05-02 13:54:59
On Sun, May 1, 2011 at 7:48 PM, Phil Bouchard <philippe_at_[hidden]> wrote:
> On 5/1/2011 7:02 PM, Emil Dotchevski wrote:
>> I'm not concerned with how cycles are being broken.
>> My question is, is there anything that protects all objects within a
>> cycle from being able to dereference a pointer to an object from the
>> cycle after that object has already been destroyed?
> A block_ptr pointing to a cyclic object that has been destroyed will be
> nullified. It won't be dereferenced.
Yes but how do I know not to dereference it? Dereferencing a null
pointer is still undefined behavior.
Reverge Studios, Inc.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk