Open
Description
The current wording of connect(sndr, rcvr)
defines the new_sndr
expression as transform_sender(decltype(get-domain-late(sndr, get_env(rcvr))){}, sndr, get_env(rcvr))
.
It then defines connect(sndr, rcvr)
as expression equivalent to new_sndr.connect(rcvr)
.
As currently worded, this requires evaluating the rcvr
expression twice. Note that the first usage in the new_sndr
expression is unevaluated, but the second usage in get_env(rcvr)
is evaluated.
I think we need to add an extra sentence at the end of this section saying "Where the expression rcvr
is only evaluated once." or similar.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ericniebler commentedon Feb 7, 2025
Proposed resolution
Change [exec.connect] p6 as follows:
ericniebler commentedon Feb 9, 2025
https://cplusplus.github.io/LWG/issue4208