From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-14 10:48:53
From: "David Abrahams" <david.abrahams_at_[hidden]>
> From: "Peter Dimov" <pdimov_at_[hidden]>
> > As for release(), I think that it needs to be dropped.
> It, or something like it, can be crucial when interfacing to legacy code.
> I'd like to at least have its availability be parameterizable. You can
> do something reasonably intelligent if you are keeping a copy of the
> pointer in the count object, for a few extra cycles: like a weak ptr all
> copies of the shared_ptr will now be false when evaluated as a boolean
Yes, I did think about the possibility. ;-)
I still remain convinced that release() is evil, though. IMHO all the
"evilness" should remain in std::auto_ptr.
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk