|
Boost : |
From: Valentin Bonnard (Bonnard.V_at_[hidden])
Date: 1999-07-07 17:08:17
Reid Sweatman wrote:
[ empty throw specifications ]
> It seems to me that without the decoration, the
> function *could* throw,
Only if it were buggy, or if the user code didn't honored
its contract (like don't throw in dtor ect)
> and without that compiler-generated excess baggage,
> you wouldn't even get an unexpected exception, leaving it to a higher
> function to catch.
Err, no, you don't get the ``unexpected'' exception
(std::bad_exception) with an empty throw spec you
get a call to terminate (just to make it clear).
(Just to make things clear in case they aren't--but
maybe they are.)
-- Valentin Bonnard ------------------------------------------------------------------------ eGroups.com home: http://www.egroups.com/group/boost http://www.egroups.com - Simplifying group communications
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk