[cfe-dev] blocks with c++ lambas
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.
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
More information about the cfe-dev