Skip to content

Commit bba1f0e

Browse files
burblebeetkoeppe
authored andcommitted
LWG4461 stop-when needs to evaluate unstoppable tokens
Fixes US NB 226-345 (C++26 CD).
1 parent 1da2a2e commit bba1f0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/exec.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5168,7 +5168,8 @@
51685168
if \tcode{remove_cvref_t<decltype((token))>} models
51695169
\libconcept{unstoppable_token} then
51705170
\tcode{\exposid{stop-when}(\brk{}sndr, token)} is expression-equivalent to
5171-
\tcode{sndr}.
5171+
\tcode{(void)token, sndr},
5172+
except that \tcode{token} and \tcode{sndr} are indeterminately sequenced.
51725173

51735174
\item
51745175
Otherwise,

0 commit comments

Comments
 (0)