Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2007-08-20 12:12:53

on Mon Aug 20 2007, "Giovanni Piero Deretta" <> 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
The Astoria Seminar ==>

Boost list run by bdawes at, gregod at, cpdaniel at, john at