Skip to content

Commit f9d8489

Browse files
committed
LWG4358 [exec.as.awaitable] is using "Preconditions:" when it should probably be described in the constraint
1 parent ccbca41 commit f9d8489

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

source/exec.tex

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6758,16 +6758,8 @@
67586758
where \tcode{A} is the type of the expression above.
67596759
\item
67606760
Otherwise, \tcode{(void(p), expr)}
6761-
if \tcode{\exposconcept{is-awaitable}<Expr, U>} is \tcode{true},
6762-
where \tcode{U} is an unspecified class type
6763-
that is not \tcode{Promise} and
6764-
that lacks a member named \tcode{await_transform}.
6765-
6766-
\expects
6767-
\tcode{\exposconcept{is-awaitable}<Expr, Promise>} is \tcode{true} and
6768-
the expression \tcode{co_await expr}
6769-
in a coroutine with promise type \tcode{U} is expression-equivalent to
6770-
the same expression in a coroutine with promise type \tcode{Promise}.
6761+
if \tcode{decltype(\exposid{GET-AWAITER}(expr))}
6762+
satisfies \tcode{\exposconcept{is-awaiter}<Promise>}.
67716763
\item
67726764
Otherwise, \tcode{\exposid{sender-awaitable}\{\exposid{adapted-expr}, p\}}
67736765
if

0 commit comments

Comments
 (0)