-
Notifications
You must be signed in to change notification settings - Fork 803
P3815R1 Add scope_association concept to P3149 #8531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Fixes NB FI-392, CA-393 (C++26 CD).
| @\exposid{sndr}@.reset(); | ||
| @\exposid{assoc}@([&] { | ||
| @\exposid{sender-ref}@ guard{addressof(@\exposid{sndr}@)}; | ||
| auto assoc = t.try_associate(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we choose a different name for this local variable 'assoc' which doesn't shadow the data member assoc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ass?
source/exec.tex
Outdated
| : assoc(std::move(parts.first)) { | ||
| if (assoc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| : assoc(std::move(parts.first)) { | |
| if (assoc) | |
| : @\exposid{assoc}@(std::move(parts.first)) { | |
| if (@\exposid{assoc}@) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
source/exec.tex
Outdated
| if (assoc) | ||
| ::new (@\placeholdernc{voidify}@(op)) op_t(connect(std::move(*parts.second), std::move(r))); | ||
| else | ||
| rcvr = addressof(r); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| rcvr = addressof(r); | |
| @\exposid{rcvr}@ = addressof(r); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
source/exec.tex
Outdated
| explicit op_state(pair<assoc_t, sender_ref_t> parts, Rcvr& r) | ||
| : assoc(std::move(parts.first)) { | ||
| if (assoc) | ||
| ::new (@\placeholdernc{voidify}@(op)) op_t(connect(std::move(*parts.second), std::move(r))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ::new (@\placeholdernc{voidify}@(op)) op_t(connect(std::move(*parts.second), std::move(r))); | |
| ::new (@\placeholdernc{voidify}@(@\exposid{op}@)) op_t(connect(std::move(*parts.second), std::move(r))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
source/exec.tex
Outdated
| \pnum | ||
| \exposid{association-t} is a class template, | ||
| specializations of which model \libconcept{scope_association} and | ||
| contain an exposition-only member scope of type \tcode{Scope*}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| contain an exposition-only member scope of type \tcode{Scope*}. | |
| contain an exposition-only member \exposid{scope} of type \tcode{Scope*}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
source/exec.tex
Outdated
| \tcode{assoc} is engaged when \tcode{assoc.\exposid{scope} != nullptr} is \tcode{true}, | ||
| \item | ||
| if \tcode{assoc} is engaged, | ||
| then \tcode{assoc.\exposid{try_associate}()} is equivalent to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| then \tcode{assoc.\exposid{try_associate}()} is equivalent to | |
| then \tcode{assoc.try_associate()} is equivalent to |
Looks like you put the \exposid here, when it should have been on the line below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
source/exec.tex
Outdated
| \tcode{assoc.scope->try-associate()}, and | ||
| \item | ||
| the association owned by \tcode{assoc} | ||
| is released by invoking \tcode{assoc.scope->\exposid{disassociate}()}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| is released by invoking \tcode{assoc.scope->\exposid{disassociate}()}. | |
| is released by invoking \tcode{assoc.\exposid{scope}->\exposid{disassociate}()}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| // \ref{exec.simple.counting.token}, token | ||
| struct token; | ||
|
|
||
| using @\exposid{assoc-t}@ = @\exposid{association-t}@<simple_counting_scope>; // \expos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| using @\exposid{assoc-t}@ = @\exposid{association-t}@<simple_counting_scope>; // \expos | |
| // \ref{exec.simple.counting.assoc}, assoc | |
| using @\exposid{assoc-t}@ = @\exposid{association-t}@<simple_counting_scope>; // \expos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That label doesn't exist.
Fixes NB FI-392, CA-393 (C++26 CD).
Fixes #8475
Fixes cplusplus/papers#2426
Fixes cplusplus/nbballot#967
Fixes cplusplus/nbballot#968