Boost logo

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

Boost list run by bdawes at, gregod at, cpdaniel at, john at