From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-04 07:50:13
From: "John Maddock" <John_Maddock_at_[hidden]>
> At the risk of muddying the waters still further, I have a version of
> scoped_ptr which:
> * doesn't change the implementation at all for existing compilers
> * fixes the premature destructor instantiation problem with bcb5, without
> increasing the size of the object (by using a static callback pointer).
> Really this is just a modified version of Fernando's grinning_pointer.
[using a static deleter]
Excellent! We now have a proof of concept that the modified specification
(that requires a complete type only on construction) has virtually no
I like this scoped_ptr version because the modified shared_ptr in
has the same requirement, i.e. a complete type is required only on
-- 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