Should this always work?

frame frame86 at live.com
Sat May 1 08:03:45 UTC 2021


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?





More information about the Digitalmars-d-learn mailing list