
28 Oct
2009
28 Oct
'09
3:29 p.m.
On 10/28/09 15:41, Igor R wrote:
I've already tried boost::shared_from_this and it gives me the same result.
Inherit A from enable_shared_from_this<A>. In B use static_pointer_cast<B> to convert from shared_ptr<A> to shared_ptr<B>
Thanks, it solved my problem.