Created on 2025-11-06.00:00:00 last changed 1 month ago
Proposed resolution:
This wording is relative to N5014.
Modify [exec.stop.when], as indicated:
-2- The name `stop-when` denotes an exposition-only sender adaptor. For subexpressions `sndr` and `token`:
- (2.1) — If `decltype((sndr))` does not satisfy `sender`, or
remove_cvref_t<decltype((token))>does not satisfy `stoppable_token`, thenstop-when(sndr, token)is ill-formed.- (2.2) — Otherwise, if
remove_cvref_t<decltype((token))>models `unstoppable_token` thenstop-when(sndr, token)is expression-equivalent to(void)token, sndr, except that `token` and `sndr` are indeterminately sequenced.
[ Kona 2025-11-08; Status changed: Immediate → WP. ]
[ Kona 2025-11-07; approved by LWG. Status changed: New → Immediate. ]
For the case where `token` models `unstoppable_token` the expression that `stop-when` is expression-equivalent to needs to include the fact that `token` is evaluated (even if not used).
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2025-11-11 10:48:55 | admin | set | messages: + msg15709 |
| 2025-11-11 10:48:55 | admin | set | status: immediate -> wp |
| 2025-11-07 19:18:11 | admin | set | messages: + msg15593 |
| 2025-11-07 19:18:11 | admin | set | status: new -> immediate |
| 2025-11-07 06:29:20 | admin | set | messages: + msg15581 |
| 2025-11-06 00:00:00 | admin | create | |