News for hackers. Stuff that matters.
Re:Real cost of C++ exception vs error-code checking by cpeterso on Tuesday March 08, 2011 @08:53PM (#2303452)
As mentioned, C++ exception specifications are checked at run-time, not compile-time. And if your function's exception specification declares `throws(FooException)` and you call some third-party library function (which may or may not have its own exception specification!) that throws a `BarException`, C++'s runtime checks will `terminate()` your program!

C++ exceptions and exception specifications are pretty much all the worst possible design decisions. :(

There are no comments on this comment yet.