From: Andrei Alexandrescu \(See Website for Email\) (andrewalex_at_[hidden])
Date: 2004-05-14 23:10:42
"Pavel Vozenilek" <pavel_vozenilek_at_[hidden]> wrote in message
> Multi index container library includes ScopeGuard (almost verbatim
> from Andrei) until some boost-wide solution appears.
What does it/should it do if the guard function throws an exception? Is
there some try/catch in ScopeGuard's destructor?
I was never sure what to do there. You can't pass an error out, you can't
throw... and to keep the library general, you can't do something like
logging or writing to cerr. Any ideas?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk