-
Notifications
You must be signed in to change notification settings - Fork 777
P3570R2 optional variants in sender/receiver #8003
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?
P3570R2 optional variants in sender/receiver #8003
Conversation
99d6617
to
83f7446
Compare
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.
The PR looks correct, except that there is some formatting which should be changed, perhaps separately or as a fixup here. It's only a whitespace difference anyway.
Co-authored-by: Jan Schultke <[email protected]>
I have 3 overfull boxes that I could use help to resolve: Error: Overfull \hbox (14.032pt too wide) in paragraph at lines 1017--1021 |
its associated awaitable completion adaptor. | ||
|
||
\pnum | ||
The name \tcode{get_await_completion_adaptor} denotes a query object. |
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.
You can probably resolve the overfull hbox issues in this area by sprinkling some soft hyphens (\-
) into these long identifiers.
Otherwise, \tcode{\exposid{sender-awaitable}\{\exposid{adapted-expr}, p\}} | ||
if \tcode{\exposid{has-queryable-await-completion-adaptor}<Expr>} | ||
and \tcode{\exposid{awaitable-sender}<decltype((\exposid{adapted-expr})), Promise>} | ||
are both satisfied, where \exposid{adapted-expr} is | ||
\tcode{get_await_completion_adaptor(get_env(expr))(expr)}, | ||
except that \tcode{expr} is evaluated only once. |
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.
Sprinkling in some soft hyphens (\-
) into names and optional word breaks (\brk{}
) after opening parentheses and punctuation should do the trick here.
Fixes #7955
Fixes cplusplus/papers#2249