Exception specifications on functions useless?
Bjoern Michaelsen
bjoern.michaelsen at canonical.com
Wed Mar 21 05:16:15 PDT 2012
On Wed, Mar 21, 2012 at 12:33:13PM +0100, Stephan Bergmann wrote:
> But that is completely unrelated to whether you can only throw
> derivations of std::exception or also things like int 5.
Yes, sorry for mixing that in. The problem is can-throw-by-default. If one
would be required to spec what one would throw (java checked exceptions like),
one would at least _see_ if something can throw something overly generic (the
equivalent of an void*) and could take precautions.
Best,
Bjoern
More information about the LibreOffice
mailing list