cplusplus / sender-receiver

Issues list for P2300
Apache License 2.0
19 stars 3 forks source link

Typo in definition of `SCHED-ENV` helper #282

Closed lewissbaker closed 2 months ago

lewissbaker commented 2 months ago

The definition of the SCHED-ENV helper in [snd.expos] p6 contains:

SCHED-ENV(sch) is an expression o2 whose type satisfies queryable such that o1.query(get_scheduler) is a prvalue with the same type and value as sch, and such that o2.query(get_domain) is expression-equivalent to sch.query(get_domain)..

Should the o1.query(get_scheduler) actually be o2.query(get_scheduler)? It doesn't make sense to me if it is referring to the o1 expression from the definition of SCHED-ATTRS(sch) preceding it.

lewissbaker commented 2 months ago

@ericniebler confirmed that this seems to be a typo.

lewissbaker commented 2 months ago

Submitted editorial PR to fix: https://github.com/cplusplus/draft/pull/7201

lewissbaker commented 2 months ago

Fix has now been merged into WD.