
13 Jan
2009
13 Jan
'09
1:41 p.m.
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.