Skip to content

Commit bfc7275

Browse files
authored
[exec.snd.expos] Fix markup of exposition-only recv identifier in basic-state constructor
The initialization of the exposition-only `recv` member should have marked-up `recv` using \exposid in member-initializer. Also, the `recv` argument passed to `get-state` was supposed to be referring to the exposition-only data-member rather than the parameter of the same name as otherwise it would be referring to a moved-from object. So markup the `recv` argument to `get-state` using \exposid as well to make this (slightly) clearer.
1 parent 3982d5d commit bfc7275

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/exec.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,8 +1618,8 @@
16181618
template<class Sndr, class Rcvr>
16191619
struct @\exposid{basic-state}@ { // \expos
16201620
@\exposid{basic-state}@(Sndr&& sndr, Rcvr&& rcvr) noexcept(@\seebelow@)
1621-
: rcvr(std::move(rcvr))
1622-
, state(@\exposid{impls-for}@<tag_of_t<Sndr>>::@\exposid{get-state}@(std::forward<Sndr>(sndr), rcvr)) { }
1621+
: @\exposid{rcvr}@(std::move(rcvr))
1622+
, state(@\exposid{impls-for}@<tag_of_t<Sndr>>::@\exposid{get-state}@(std::forward<Sndr>(sndr), @\exposid{rcvr}@)) { }
16231623

16241624
Rcvr @\exposid{rcvr}@; // \expos
16251625
@\exposid{state-type}@<Sndr, Rcvr> @\exposid{state}@; // \expos

0 commit comments

Comments
 (0)