Re: calling matching delete operator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux