This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Exception(al) Failure
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: Exception(al) Failure
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Wed, 8 Dec 1999 21:47:51 -0800 (PST)
> #include <iostream>
> #include <string>
>
> using namespace std;
> main()
> {
> try { throw string("x"); }
> catch (const string &s) { cout << s << endl; }
> }
seems to work fine for me. I tried this with CVS libstdc++ and gcc-2.95.2
and CVS egcs. This is with and without the using declaration (I currently
don't have namespaces turned on).
-benjamin