Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-11-04 18:34:35


David Abrahams wrote:
[...]
> > And pretending that as far the standard/portable C++ is concerned
> > they're nonexistent won't really help you to deal with them (given
> > that they can be thrown by the ordinal C++ throw-expressions, not
> > only "SEH" things).
>
> What's an "ordinal C++ throw-expression"? Do you mean "ordinary?"

Yep. And the only way to instruct a throwing function to abort()
(instead of throwing this or that exception; without changing its
interface) is to NOT use the standard C++ EH other than as totally
dumb mechanism for transfer of control and unwinding AFTER the
checking -- roll in home grown 2-phase EH stuff (on top of dumb
throw) with a lot of overhead (and now you'll also need to change
implementations in order to replace all those standard/ordinary
C++ throw-expressions with a bit more sophisticated "check and
transfer control/unwind IFF expected" mechanism). Ugly. Ugly.

regards,
alexander.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk