This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: Exception(al) Failure


> #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





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