Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2005-09-23 17:37:08


"Peter Dimov" wrote:

> Eliminating resource management as a motivation leaves me wondering what
> are
> the primary uses for scope[d]_guard that you have in mind?
>

There's one zillion of legacy APIs.

People don't employ strict OO techniques all the time.

The currect scope_guard has very poweful
group-undo variant that could used to implement
transation-like functionality.

The arm() feature costs almost nothing, is quite
natural and may came handy depending on design.

/Pavel


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