|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-14 10:33:46
From: "David Abrahams" <david.abrahams_at_[hidden]>
> From: "Peter Dimov" <pdimov_at_[hidden]>
>
> > The new shared_ptr works.
>
> Are you looking at some different CVS repository than I am?
More or less. ;-) "The new shared_ptr" is the shared_ptr in
http://groups.yahoo.com/group/boost/files/smart_ptr_3.zip
The code is written in such a way so that it can be added to the CVS without
causing problems for existing smart_ptr.hpp users (it uses different
headers, f.ex. shared_ptr.hpp, and the new classes pass smart_ptr_test.cpp.)
> > You can even have shared_ptr<void> as b.
>
> I suppose a deleter is instantiated and kept with the count?
Yes.
-- 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