
23 Sep
2005
23 Sep
'05
10:37 p.m.
"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