Are you sure ptr is non-zero? Probably, dynamic_pointer_cast failed
and returned 0.

  Dynamic pointer cast works, and it points to the same address as its base class pointer, I checked.
  But when I push it, it disappears.
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users