Skip to content

Commit a6bb9ec

Browse files
committed
LWG4354 Reconsider weakly_parallel as the default forward_progress_guarantee
[exec.get.fwd.progress]p2 Removed : after "expression-equivalent to" for consistency.
1 parent 783f4ff commit a6bb9ec

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

source/exec.tex

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,17 +1006,13 @@
10061006
If \tcode{Sch} does not satisfy \libconcept{scheduler},
10071007
\tcode{get_forward_progress_guarantee} is ill-formed.
10081008
Otherwise,
1009-
\tcode{get_forward_progress_guarantee(sch)} is expression-equivalent to:
1010-
\begin{itemize}
1011-
\item
1012-
\tcode{\exposid{MANDATE-NOTHROW}(\exposid{AS-CONST}(sch).query(get_forward_progress_guarantee))},
1013-
if that expression is well-formed.
1009+
\tcode{get_forward_progress_guarantee(sch)} is expression-equivalent to
1010+
\begin{codeblock}
1011+
@\exposid{MANDATE-NOTHROW}@(@\exposid{AS-CONST}@(sch).query(get_forward_progress_guarantee))
1012+
\end{codeblock}
10141013

10151014
\mandates
10161015
The type of the expression above is \tcode{forward_progress_guarantee}.
1017-
\item
1018-
Otherwise, \tcode{forward_progress_guarantee::weakly_parallel}.
1019-
\end{itemize}
10201016

10211017
\pnum
10221018
If \tcode{get_forward_progress_guarantee(sch)} for some scheduler \tcode{sch}
@@ -1111,6 +1107,7 @@
11111107
@\exposconcept{queryable}@<Sch> &&
11121108
requires(Sch&& sch) {
11131109
{ schedule(std::forward<Sch>(sch)) } -> @\libconcept{sender}@;
1110+
{ get_forward_progress_guarantee(sch) } -> @\libconcept{same_as}@<forward_progress_guarantee>;
11141111
{ auto(get_completion_scheduler<set_value_t>(
11151112
get_env(schedule(std::forward<Sch>(sch))))) }
11161113
-> @\libconcept{same_as}@<remove_cvref_t<Sch>>;

0 commit comments

Comments
 (0)