19 Jul
2003
19 Jul
'03
1:06 p.m.
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.