File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1313The design discussion of <code >task</code > describes defaults for
1414the two template parameters <code >T</code > and <code >Environment</code >
1515of <code >task</code > but these defaults are not reflected in the
16- synopsis of <a href = " https://wg21.link/task.class " > [task.class]</ a >.
16+ synopsis of <sref ref = " [task.class]" / >.
1717This is an oversight and should be fixed. The default for
1818<code >T</code > should be <code >void</code > and the default for
1919<code >Environment</code > should be <code >env<> </code > (the
2020design paper used <code >empty_env</code > but this <code >struct</code >
21- was replaced by the class template <code >env</code > by <a
22- href=" https://wg21.link/p3325" >P3325r5</a >).
21+ was replaced by the class template <code >env</code > by <paper ref =" p3325r5" />).
2322</p >
2423<p >
2524There could be a counter argument to defining a default for the
@@ -40,8 +39,7 @@ on 2025-08-26 the direction is to add the default arguments.
4039<p >
4140Add default template arguments for <code >task</code > for
4241<code >T = void</code > and <code >Environment = env<> </code >
43- in the synopsis of <a
44- href=" https://wg21.link/task.class" >[task.class]</a >:
42+ in the synopsis of <sref ref =" [task.class]" />:
4543<blockquote ><pre >
4644namespace std::execution {
4745 template< class T <ins >= void</ins >, class Environment <ins >= env<> </ins >>
You can’t perform that action at this time.
0 commit comments