|
Boost Users : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-07-19 08:06:39
Jason Winnebeck wrote:
>
> Instead I tried to make the SharedThis class non-templated, and
> virtually inherit from that. However it didn't work, because of
> pointer casting issues. I'm not sure if this is what caused my
> errors, but I heard that you can't downcast from a virtual base class
> * to a concrete class without dynamic_cast.
That's correct. A virtual base class's offset can vary at runtime.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net