
20 Aug
2007
20 Aug
'07
4:12 p.m.
on Mon Aug 20 2007, "Giovanni Piero Deretta" <gpderetta-AT-gmail.com> wrote:
The trick used by ScopeExit could be much more useful as a generalized (named) closure mechanism. These closures could then be used with the classic ScopeGuard idiom, to emulate what ScopeExit does right now, but could also replace most usages of boost lambda.
Anyone would find such a mechanism useful? Alexander, do you think that it would be hard to extend ScopeExit to a generalized closure? I have done some experiments in the past with something like that and it seemed doable.
If it's really doable, I'd be very interested. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com