Topic: catch in ctor: syntax
Author: Marc Girod <girod@stybba.ntc.nokia.com>
Date: 1998/03/01 Raw View
Hello!
I am waiting impatiently for my compiler to support catching
exceptions thrown during sub-object construction. Could you confirm
that my test case below is valid, so that I don't wait forever that
it compiles :-)
struct X {
X() { throw 1; }
};
struct Y {
X x;
Y() try :x() {} catch (int&) {}
};
Best Regards!
--
Marc Girod Nokia Telecommunications NWS/NMS/NMD/NOMA
Valimo 1/2 P.O. Box 315 Phone: +358-9-511 63331
00380 Helsinki 00045 NOKIA Group Fax: +358-9-511 63310
Finland marc.girod@ntc.nokia.com
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Alexandre Oliva <oliva@dcc.unicamp.br>
Date: 1998/03/02 Raw View
Marc Girod writes:
> Could you confirm that my test case below is valid, so that I don't
> wait forever that it compiles :-)
It is.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]