-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
[exec.when.all] has the following:
Let make-when-all-env be the following exposition-only function template:
template<class Env> constexpr auto make-when-all-env(inplace_stop_source& stop_src, // exposition only Env&& env) noexcept { return see below; }Returns an object
esuch that
5.1
decltype(e)modelsqueryable, and5.2
e.query(get_stop_token)is expression-equivalent tostate.stop-src.get_token(), and5.3 given a query object
qwith type other thancvget_stop_token_tand whose type
satisfiesforwarding-query,e.query(q)is expression-equivalent toget_env(rcvr).query(q).
the problem is the reference to get_env(rcvr) in 5.3. there is no rcvr here. it should be referring instead to the env parameter.
Proposed Resolution
Change [exec.when.all] p5.3 to read as follows:
- 5.3 given a query object
qwith type other thancvget_stop_token_tand whose type
satisfiesforwarding-query,e.query(q)is expression-equivalent toenv.query(q).
Metadata
Metadata
Assignees
Labels
No labels