7 Mar
2005
7 Mar
'05
5:44 p.m.
"steve ahlgren"
Hello :
Is there safe/easy way to downcast shared pointers?
ie boost::shared_ptr< Derived_Type > dPtr = [appropriate_method_here] ( base_ptr );
Thanks in advance; Steve a.
You could downcast reference instead of shared_ptr.
Derived_Type& derived_ref = polymorphic_downcast