Exception specifications on functions useless?

Tor Lillqvist tml at iki.fi
Wed Mar 21 00:40:32 PDT 2012

>  Opinions on this?

I am in favour of removing the throw specifications. Especially after
reading your link (and what it links to, like
http://www.gotw.ca/publications/mill22.htm ).

I think a large part of our hackers, certainly of new ones, might have
more experience of Java than C++. They might think that C++ is more
like Java, and that the throw clauses are crucial to be exactly right
(for some value of "right"), and then waste time. (Or am I completely

And then there are the hackers (like me) who don't bother to wonder
about it, and pay no attention to whether some function claims to
potentially throw something or not, and just copy boilerplate as they
think necessary when applicable. For the benefit of both classes of
hackers it would be cleaner to just remove the throw specifications.


More information about the LibreOffice mailing list