Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-12-10 11:10:43


From: "Johan Nilsson" <johan.nilsson_at_[hidden]>
> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:ufzt62ax6.fsf_at_boost-consulting.com...
>
> > Incidentally, shared_ptr<void> may allow you the kind of type erasure
> > you want. Just a thought...
>
> I' afraid I don't really follow you. Wouldn't shared_ptr<void> choke on
> trying to delete through a void pointer?

No.

shared_ptr<void> pv(new X);
pv.reset(); // calls X::~X()


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk