ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> cpp-sig
cpp-sig
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved