[C++-sig] cross-module shared_ptr downcast
by Jon Anderson other posts by this author
Jun 26 2003 3:23PM messages near this date
[C++-sig] Re: Interest in luabind
|
[C++-sig] Re: cross-module shared_ptr downcast
I have a Container that holds shared_ptr's to a Base class. I can
successfully add and retrieve shared_ptrs to a Derived class, properly
downcasted on retrieval, as along as the bindings for both the Base and
Derived class are defined in the same module. However, when I have the Base
class bindings defined in module A, and the Container and Derived class
bindings defined in module B, the down cast no longer happens. Each module
is a separate .so.
Should this work, or am I limited to having them all in the same module in
order to make the downcasts work?
Thanks,
Jon
_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:
Jon Anderson
David Abrahams
|