This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: calling matching delete operator
- From: John Love-Jensen <eljay at adobe dot com>
- To: Gerald Iakobinyi-Pich <nutrina9 at yahoo dot de>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Wed, 16 Nov 2005 07:13:03 -0600
- Subject: Re: calling matching delete operator
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