From: Sean Kelly (sean_at_[hidden])
Date: 2004-01-20 14:44:05
Bronek Kozicki wrote:
> On Wed, 14 Jan 2004 16:46:25 -0800 (PST), Sean Kelly wrote:
>>Currently, there's no way to force a shared_ptr to release something once
>>it has been given ownership of it. I've run into instances where I use a
> There is a way, and I will show you how I did it in my production code
> (single-threaded at this moment, but I think you will have no trouble to
> make it concurrency-safe).
Thanks. I've been using an old version of shared_ptr without deleters.
I suppose this might be one reason to upgrade. It still seems like a
great effort to go to just to get a shared_ptr to release ownership, but
at least it's possible.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk