|
Boost : |
From: Braden N. McDaniel (braden_at_[hidden])
Date: 2000-01-14 02:44:29
On Fri, 14 Jan 2000, Braden N. McDaniel wrote:
> Is there any way to downcast a shared_ptr? That is, the effect of
>
> shared_ptr<Base> base(new Base);
Um. Oops. The above line should of course be
shared_ptr<Base> base(new Derived);
> shared_ptr<Derived> derived(base);
-- Braden N. McDaniel braden_at_[hidden] <URL:http://www.endoframe.com>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk