
13 Jan
2009
13 Jan
'09
2:12 p.m.
On Tue, Jan 13, 2009 at 2:41 PM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
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.
I still I do not see how can you define *polymorphic* inline functions with ScopeExit or a similar technique (which IIRC is basically 'just' a local class). And, lacking that quality, how is it more powerful than C++0x lambdas? -- gpd