[C++-sig] Cross Module Inheritance and Downcast

Joseph Lisee jlisee at gmail.com
Fri Jan 11 22:40:53 CET 2008


Roman Yakovenko <roman.yakovenko <at> gmail.com> writes:
> I could be wrong, but there is a known problem with the library. You
> can search this mailing list and find the patch.

This is where I need the help.  I found people who had similar cross module
issues and David A. said that they need to make sure they were linking with 
the right libraries, and had RTTI enabled.  There was also talk of cross module
support being added to boost.python, but no talk of what exactly this support
did and didn't do.

So if anyone can point me in the direction of some documentation which says
where exactly cross module support in Boost.Python sits, that would be helpful.

I am also curious as to why that castTo function doesn't work.  I think its
because Boost.Python tries to be too smart and realizes that it already has a
corresponding python object for C++ object inside the shared_ptr and just
returns it instead.  It is odd that this only happens on Windows, and OS X 
though.

-Joseph Lisee




More information about the Cplusplus-sig mailing list