From: Dave Abrahams (abrahams_at_[hidden])
Date: 1999-10-10 12:45:21
> Adam Levar wrote:
> The definition of bad_numeric_cast in cast.hpp is missing the no throw
> specifier on the what() method.
> Yes, well spotted -- humans still seem to have the edge on compilers!
> Thanks, Kevlin.
Think twice before putting empty exception-specifications on functions that
don't throw, then think again:
This will result in no compile-time checking
The run-time behavior is not advantageous
Few compilers can use it for optimization
Even among those that do, it will usually only result in a small reduction
in executable size
Many compilers will use it for pessimization, resulting in a large cost in
executable size and often, speed.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk