[cxx-abi-dev] ::delete and deleting destructors

Jason Merrill jason at redhat.com
Wed Sep 5 18:48:12 UTC 2007


Mark Mitchell wrote:
> Why can't the code generated by the compiler for "::delete x", where "x"
>  is of type "X", a dynamic class, be:
> 
>   // Get the virtual table.
>   vtbl = *x;
>   // Adjust by the offset-to-top.
>   p = x + vtbl[-2];

Good point, I'll do that.

Jason




More information about the cxx-abi-dev mailing list