Aaron Bentley <abentley@panoramicfeedback.com> writes:
Okay, here's some stripped down examples:
---foo.h--- class BaseClass { public: BaseClass() {} virtual ~BaseClass() {} };
---foo.cpp--- ... ^^^ That's not very useful; it produces a syntax error. Please post something that compiles.
<snip>
Everything except wrapper.cpp is built as one shared library.
And how is wrapper.cpp built? How about just posting a Jamfile?
When I run test.py, I get this: Testing SubClass
<snip>
If I change the constructor for SubClass to an inline constructor
I can tell you that in many compilers, RTTI information typically gets generated where a class' first non-inline function is defined.
, I get this:
<snip> How about reducing your python test program to something that does a single operation that causes an assertion to fire? Trying to figure out what you think the behavior ought to be from all this output is going to be hard.
So it seems I can't do implicit dynamic casts (passing a base-class pointer to a function taking a subclass pointer) and explicit dynamic casts at the same time.
-- Dave Abrahams Boost Consulting www.boost-consulting.com