[cxx-abi-dev] Lambda conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cxx-abi-dev] Lambda conversion
- To: "cxx-abi-dev@xxxxxxxxxxxxxxxx" <cxx-abi-dev@xxxxxxxxxxxxxxxx>
- Subject: [cxx-abi-dev] Lambda conversion
- From: Jason Merrill <jason@xxxxxxxxxx>
- Date: Tue, 09 Mar 2010 08:07:51 -0500
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