throw specs on Standard destructors

Benjamin Kosnik bkoz@redhat.com
Tue Dec 10 12:56:00 GMT 2002


>First, in any function so declared that itself called a function 
>which might throw something not listed, the compiler would have to 
>generate code to catch them and call terminate().  
>
>Second, if it later became necessary to allow such a function
>to throw an exception not listed, any code that depended on its 
>previous spec would be broken.

Sorry. I was talking just about destructors, which I believe is clearly
implied in the standard. (see references to standard in first post).

-benjamin



More information about the Libstdc++ mailing list