This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: malloc/free & new/delete balance
- To: Carlo Wood <carlo at runaway dot xs4all dot nl>
- Subject: Re: malloc/free & new/delete balance
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 30 Jun 1998 13:59:55 -0300
- Cc: egcs at cygnus dot com (egcs at cygnus dot com)
- References: <199806301523.RAA28699@jolan.ppro>
Carlo Wood <carlo@runaway.xs4all.nl> writes:
> If the default operator new[] calls operator new(size_t), and the
> only correct way to undo a call to operator new(size_t) is calling
> operator delete(void *), then this means that the default
> operator delete[](void*) should call ::operator delete(ptr) imho.
Souds reasonable, but this is ``calling'' for confirmation in
comp.std.c++ :-)
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil