On Saturday, 1 May 2021 at 10:08:17 UTC, Mike Parker wrote:
So the pitfall is the same: when you're casting class references to and from pointers, it's up to you to ensure that the type you cast to is appropriate. You get no help from the compiler here.
I see, this can be dangerous - yet, the only way in my application (DLL problem).
btw: why is it even allowed to create an instance via cast as an abstract thing?