Lambda conversion

Jason Merrill jason at redhat.com
Tue Mar 9 13:07:51 UTC 2010


So, the upshot of the committee discussion yesterday was that we keep 
the conversion, and it and the op() are non-static member functions. 
Implementation seems pretty straightforward: the conversion returns the 
address of a static member function (call it __fn), and either the op() 
calls __fn or __fn calls op() with a null object argument.

Anyone object to "__fn" as the name of the static member function?

Any preference as to which way the call goes?  I suppose we need to take 
the address of __fn in either case, which would argue for making op() 
the wrapper.  OTOH, it might be a bit easier to implement leaving op() 
alone and adding a function that calls it later.

Jason



More information about the cxx-abi-dev mailing list