Exceptions in constructor?

Alexandre Oliva oliva@dcc.unicamp.br
Mon Oct 27 12:57:00 GMT 1997


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



More information about the Gcc mailing list