[3.3] Followup to C++ forced unwinding

Zack Weinberg zack@codesourcery.com
Wed Apr 30 19:51:00 GMT 2003


Mark Mitchell <mark@codesourcery.com> writes:

> (1) The libsupc++ bits make:
>
>       void f() throw () { read (...); }
>   
>     be handled just like:
>
>       void f() throw () { throw 3; }
>  
>     would.

Query, is there a way to write "this function may be cancelled but
otherwise will not throw an exception"?  Notation like

void f() throw (cxxabi::thread_cancellation) { ... }

comes to mind.

zw



More information about the Gcc-patches mailing list