This is the mail archive of the
mailing list for the libstdc++ project.
Re: throw specs on Standard destructors
>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).