|
Boost : |
From: Valentin Bonnard (Bonnard.V_at_[hidden])
Date: 2000-07-21 13:38:33
Greg Colvin wrote:
> For non-inline functions "throws nothing" specs may allow
> optimizations that help more than their overhead hurts.
In many compilers exceptions cost nothing in term of runtime.
In some compilers exception specs cost a lot.
I don't know of any compilers for which exceptions specs
cost nothing but empty specs help in term of runtime. Could
you name one ?
I can't think of many real-world cases where non empty
specs could help. For inline functions is doesn't help
because the compiler would have as much info by performing
inline substitution.
-- Valentin Bonnard
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk