[cfe-dev] blocks with c++ lambas

James Gregurich bayoubengal at me.com
Tue Sep 11 08:54:43 PDT 2012


Thanks. It's Important because I'll need to put this in a cross platform wrapper.

Sent from my iPad

On Sep 11, 2012, at 1:58 AM, Eli Friedman <eli.friedman at gmail.com> wrote:

> On Mon, Sep 10, 2012 at 10:45 PM, James Gregurich <bayoubengal at me.com> wrote:
>> is that conversion  a compile time operation or a runtime operation?
> 
> If you convert a lambda immediately to block pointer type (like my
> original example), it's essentially free, as if you'd written the
> equivalent block.  With an expression of lambda type in general,
> though, the conversion happens at runtime: the lambda is copied into
> an autoreleased block.
> 
> -Eli
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list