C++ exception specifications
2007-05-17 05:09:22.181206+02 by Dan Lyke 2 comments
I knew that I'd seen the reason for C++ member functions of the form bool abc() const throw() before, but couldn't remember the details. It turns out there are good reasons I wasn't immediately familiar with them: A Pragmatic Look at Exception Specifications:
Moral #1: Never write an exception specification.
Moral #2: Except possibly an empty one, but if I were you I’d avoid even that.