Boost logo

Boost :

Subject: Re: [boost] [Block Pointer] Review Request
From: Phil Bouchard (philippe_at_[hidden])
Date: 2011-05-02 16:02:28


On 5/2/2011 12:49 PM, Emil Dotchevski wrote:
>
> Then, what is the benefit of block_ptr compared to using raw pointers
> as cyclic references? Maybe I'm missing something but aren't they
> equally (un)safe?

I haven't considered this scenario when block_ptr are explicitly
dereferenced in the destructor. Maybe I can add a function that can be
called explicitly to check whether the pointee is cyclic and has already
been destroyed.

But thanks,
-Phil


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