This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See for the official list.


2453. Deduced return types and coroutine lambdas

Section:  []     Status: NAD     Submitter: Lewis Baker     Date: 2020-02-14

According to [] paragraph 15,

A function declared with a return type that uses a placeholder type shall not be a coroutine (9.5.4 [dcl.fct.def.coroutine]).

This should also apply to coroutine lambdas.

Rationale (July, 2020):

No change is needed. The restriction applies to functions, and the lambda's operator() is a function.