Boost logo

Boost :

Subject: Re: [boost] [scope_exit] Doesn't included in Boost yet?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-01-13 08:41:41


Alexander Nasonov wrote:

> my example has no parameters at all, only captures:
>
> [&a, b]() -> void { /* ... */ }
> ^^ - no parameters

I know, I never cared about your example. I was replying to the part
that I actually quoted, and not the parts I purposely removed.

I care about ScopeExit as a mechanism to define inline functions with
macros, and how that is more powerful than C++0x lambdas.
Indeed, it seemed to me during review that it was to be generalized as
such and not just be used to define inline functions to be evaluated on
scope exit.


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