Boost logo

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
------------------------------------------------------------------------ home: - Simplifying group communications

Boost list run by bdawes at, gregod at, cpdaniel at, john at