Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-07-25 08:31:53


I have uploaded my proposed changes to smart_ptr.hpp in the Files area,
folder "smart_ptr." In summary, I've split it into four separate headers,
one per class, and made some changes to shared_ptr that allow its use across
app/dll boundaries; dynamic_casts are supported, too. [In addition
shared_ptr will now - as a QoI issue - call the appropriate destructor even
when it's not virtual; even shared_ptr<void> works.]

smart_ptr_test.cpp reports no errors.

shared_array is not yet converted to use the new infrastructure, I'll do it
if necessary.

Apologies about the shared_ptr.hpp formatting, I struggled with the editor
for a while but in the end gave up and just reformatted everything. :-)

If you consider the changes to be appropriate (i.e. not to be rejected
outright) but too major, I'll request a formal review.

--
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