Open ericniebler opened 11 months ago
This wording is still an issue in P2300R10.
Current wording says:
The expression
connect(out_sndr, rcvr)
has undefined behavior unless it creates an asynchronous operation ([async.ops]) that, when started:
- on a value completion operation, invokes
f(i, args...)
for everyi
of typeShape
from0
toshape
, ...
This is still ambiguous whether range is inclusive or exclusive in the upper-bound of shape
.
A resolution to this issue has been proposed in https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p3396r0.html
Issue by lewissbaker Tuesday Dec 28, 2021 at 07:04 GMT Originally opened as https://github.com/NVIDIA/stdexec/issues/340
The current wording says:
and
The wording here seems to imply that
f
is called once for eachi
in range 0 toshape
inclusive, but this would result inshape + 1
calls tof
. Whereas I assume that the intent is thatf
should be calledshape
times. i.e. fori
from 0 toshape - 1
.