Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-19 11:41:04


----- Original Message -----
From: "Thomas Maeder" <maeder_at_[hidden]>

> Are there equivalent precautions against
>
> shared_ptr<Base> b(new Derived);

Not in the current shared_ptr<>; I can't speak for Peter's. It might be a
good idea, though this case is a lot less serious because the difference in
type is apparent by inspection.


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