Boost logo

Boost :

From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-11-03 18:54:33


"E. Gladyshev" wrote:
[...]
> Ok, when an exception happens, how do I use exception safety techniques
> in practice, can you give some *practical* examples with catch(...)?

They'll all work just fine as long as your program is "correct" (read:
nothing unexpected can be thrown, each and every swallowed exception
is really-really meant to be swallowed, stack overflow and all other
"hardware exceptions" aren't meant to be catchable by "the C++ catch"
and so forth). IOW, you're not supposed to ever have an "incorrect"
program. In theory, an incorrect program may fake the stack and cause
the stack walker sing a nice song (formatting your hard disk aside for
a moment), so the idea is that "you should live with it" and it's Not
Worth Worrying About. Think positive, so to speak. ;-)

regards,
alexander.


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