Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-09-23 20:43:14


"Pavel Vozenilek" <pavel_vozenilek_at_[hidden]> writes:

>> 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.

Don't underestimate the cost of adding features for which there is no
use case. It is high.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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