[cxx-abi-dev] trivial __dynamic_cast fails?

David Abrahams dave at boost-consulting.com
Mon Mar 1 12:36:28 UTC 2004


David Baraff <deb at pixar.com> writes:

>>
> David Abrahams wrote:
>> I think it's probably more widely neededthan you'd guess, at the
>> boundary between statically and dynamically-typed systems.  I doubt
>> anyone else has had the insanity to try to simulate it in conforming
>> code,
>
> I did it in standards-conforming code, so either doing it made me
> insane, or I am insane for doing it...

Didn't you say that you were computing byte offsets for Base <-->
Derived translations?  If these classes can be non-POD, that's not
portable according to the standard.

Incidentally, my system stores those offsets as an optimization for
all platforms that can handle it (which so far is everything) but if
you want to be strict about portable conformance you have to walk
through the cast graph.


-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the cxx-abi-dev mailing list