[patch-rfc] N2179: Exception Propagation in C++

Sebastian Redl wasti@windmuehlgasse.getdesigned.at
Tue Jul 22 19:56:00 GMT 2008


Paolo Carlini wrote:
> Unfortunately, I don't think it can work. What happens if the usercode (in c++98 mode, of course) does:
>
> #define exception_prt 1
> #include <exception>
>
> ?? Apparently, you still have "unuglified" names, non reserved in c++98, in <exception>.
>   
Hmm, but there's no facility for renaming functions. And I need those 
declarations, because they have to be friends of exception_ptr.

So we're back to the variant where I need libsupc++ in 0x mode or some 
other PP symbol as a libsupc++ condition.

Or I could implement the functions as inline stubs that just call the 
uglified variant, but is that a good solution?

Sebastian



More information about the Libstdc++ mailing list