15 Apr
2009
15 Apr
'09
3:26 p.m.
On Wed, Apr 15, 2009 at 9:59 AM, Steven Watanabe
Dominique Devienne wrote:
So long story short, is there a clean way to obtain a shared_ptr<VehiculeIdent> from a shared_ptr<Ident> which one "knows" is a VehiculeIdent, to avoid my as_shared_ptr hack above?
I think you want static_pointer_cast. http://www.boost.org/libs/smart_ptr/shared_ptr.htm#static_pointer_cast
Thank you both Nat and Steven. I was unaware that shared_ptr had equivalents to the standard casts. Makes perfect sense now. Thanks again, --DD