
24 Sep
2005
24 Sep
'05
1:43 a.m.
"Pavel Vozenilek" <pavel_vozenilek@hotmail.com> 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