Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-16 18:28:55


----- Original Message -----
From: "bill_kempf" <williamkempf_at_[hidden]>

> > Also, with respect to auto_rethrow_exception:
> >
> > scoped_lock lock( systemWideMutex );
> >
> > beginUpdates(); // modify something; nothrow
> >
> > try
> > {
> > // ... plug-in oper ;-) strong
> > }
> > // ...
> > catch(...)
> > {
> > // ...
> > }
> >
> > finalizeUpdates(); // final modifications; nothrow
> >
> > return;
>
> Such code isn't exception safe any way. I don't find that to be a
> compelling argument.
>
> In other words, "finalizeUpdate" needs to be either in a RAII
> mechanism or placed in the catch(...).

Uh, why do you say that?


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