15 Apr
2009
15 Apr
'09
2:59 p.m.
AMDG 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 In Christ, Steven Watanabe