From 29cf02f1bba26294b021d7e004d3865e3806174d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dietmar=20K=C3=BChl?=
+The template parameter
+Add a default template argument of task::promise_type::return_value default template parameterV of
+task::promise_type::return_value doesn't have a default
+template argument specified. Specifying a default template argument of T
+would enable use of co_return { ... } which would be
+consistent with normal return statements. This feature
+was not discussed in the design paper but based on the LEWG discussion
+on 2025-08-26 it is considered to be more a bug fix than a new feature.
+T to the template
+parameter V of task::promise_type::return_value
+in the synopsis of [task.promise]:
+
+
+namespace std::execution {
+ template<class T, class Environment>
+ class task<T, Environment>::promise_type {
+ ...
+ template<typename V = T>
+ void return_value(V&& value);
+ ...
+ };
+
+}
+
Add a default template argument of T to the template
parameter V of task::promise_type::return_value
-in the synopsis of [task.promise]:
+in the synopsis of
namespace std::execution {
template<class T, class Environment>