This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 114a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-04-18


1557. Language linkage of converted lambda function pointer

Section: 7.5.5.2  [expr.prim.lambda.closure]     Status: CD3     Submitter: Scott Meyers     Date: 2012-09-19

[Moved to DR at the April, 2013 meeting.]

7.5.5 [expr.prim.lambda] paragraph 6 does not specify the language linkage of the function type of the closure type's conversion function.

Proposed resolution (October, 2012):

Change 7.5.5 [expr.prim.lambda] paragraph 6 as follows:

The closure type for a lambda-expression with no lambda-capture has a public non-virtual non-explicit const conversion function to pointer to function with C++ language linkage (9.11 [dcl.link]). having the same parameter and return types as the closure type's function call operator. The value returned...