30 Oct
2005
30 Oct
'05
7:30 p.m.
Hi,
I was wondering what the recommended way was to downcast shared
pointers.
I have a a base class, Base, and a derived class Derived. I have a
Base shared pointer which points to a Derived object.
shared_ptr<Base> d;
As part of a unit test, I'm trying to extract the Derived object from
it.
*static_cast