Boost logo

Boost :

Subject: Re: [boost] [scope_exit] Doesn't included in Boost yet?
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2009-01-13 09:12:56

On Tue, Jan 13, 2009 at 2:41 PM, Mathias Gaunard
<mathias.gaunard_at_[hidden]> 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?


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