On Saturday, 1 May 2021 at 06:17:36 UTC, Mike Parker wrote:

That only works when you're casting one class/interface reference to another. It doesn't > > work when you're casting raw pointers.


Thanks for clarification.

In case of a void* to abstract class casting, I assume the compiler just inserts the right vtable, so this cast is unproblematic - or is there also a pitfall?



Reply via email to