Boost logo

Boost :

From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2008-08-28 12:27:58


Sebastian Redl wrote:
> Phil Bouchard wrote:
>> As it turns out I think a release() member function should be added to
>> the smart pointer.
> Which smart_ptr?
>
> I think scoped_ptr should have a release(). It's technically impossible
> to add a useful one to the refcounted smart pointers.
>

It works for refcounted smart pointers iff p.unique() == true.

Thanks,

Micahel Marcin


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