Boost logo

Boost Users :

Subject: Re: [Boost-users] shared_ptr downcast
From: Vincent Jacques (newsgroups_at_[hidden])
Date: 2008-12-23 05:36:47


Hello,

Quoting Jason Cipriani <jason.cipriani_at_[hidden]>:
> How do I downcast to a shared_ptr<Derived>? E.g.:

Isn't dynamic_pointer_cast what you are looking for ?

http://www.boost.org/doc/libs/1_37_0/libs/smart_ptr/shared_ptr.htm#functions

I hope it helps,

-- 
Vincent Jacques
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème"
     Devise Shadock

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net