CWG Issue 1557 (original) (raw)
This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 117a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-04-13
1557. Language linkage of converted lambda function pointer
Section: 7.5.6.2 [expr.prim.lambda.closure]Status: CD3Submitter: Scott MeyersDate: 2012-09-19
[Moved to DR at the April, 2013 meeting.]
7.5.6 [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.6 [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.12 [dcl.link]). having the same parameter and return types as the closure type's function call operator. The value returned...