Title
Deduced return types and coroutine lambdas
Status
nad
Section
9.2.9.7.1 [dcl.spec.auto.general]
Submitter
Lewis Baker

Created on 2020-02-14.00:00:00 last changed 47 months ago

Messages

Date: 2020-07-15.00:00:00

Rationale (July, 2020):

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

Date: 2022-11-20.07:54:16

According to 9.2.9.7.1 [dcl.spec.auto.general] 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.

History
Date User Action Args
2020-12-15 00:00:00adminsetmessages: + msg6299
2020-02-14 00:00:00admincreate