Re: [cxx-abi-dev] ::delete and deleting destructors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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