calling matching delete operator

John Love-Jensen eljay@adobe.com
Wed Nov 16 13:13:00 GMT 2005


Hi Gerald,

You need to call your custom operator delete.

int main(int argc,char *argv[])
{
  A *a = new("Allocing class A") A();
  operator delete(a, "Deallocating class A");
  return 0;
}

HTH,
--Eljay



More information about the Gcc-help mailing list