This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Exceptions in constructor?
Paul Koning writes:
>>>>>> "chip" == chip <chip@atlantic.net> writes:
chip> throwing an exception in a constructor
chip> automatically called the appropriate operator delete () if
chip> there had been a call to operator new ().
> Does the C++ standard say to do that?
It does, in [expr.new]/17-20
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil