Exception specifications on functions useless?

Stephan Bergmann sbergman at redhat.com
Wed Mar 21 04:33:13 PDT 2012


On 03/21/2012 12:28 PM, Bjoern Michaelsen wrote:
> On Wed, Mar 21, 2012 at 11:54:09AM +0100, Stephan Bergmann wrote:
>> It does *not* add "another _untyped_ return path," at least not any more so
>> than it would do if throwable types in C++ were restricted to some specific
>> subset.
>
> Thats exactly the point. In a statically typed environment the default would
> have needed to be "cant throw anything, unless explicitly stating otherwise".

But that is completely unrelated to whether you can only throw 
derivations of std::exception or also things like int 5.  I think I lost 
you.

Stephan


More information about the LibreOffice mailing list