This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: malloc/free & new/delete balance


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]