Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2001-04-06 12:40:52


Gary Powell writes
 
>IMO shared_ptr needs a "release()" member function. Why? because I need to
>hand off the memory it holds to a regular pointer, which then will take full
>ownership.

and then

>Nevermind....

> This is a misuse of shared_ptr and I'll stop....

Probably right about shared_ptr, but what about scoped_ptr? It seems like
release() would make a nice addition to it.

-- 
Regards,
Vladimir

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