Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AlisdairM
Copy link
Contributor

@AlisdairM AlisdairM force-pushed the apply_p3570_optional_variants_in_sender_receiver branch from 99d6617 to 83f7446 Compare June 23, 2025 18:12
Copy link
Member

@Eisenwave Eisenwave left a 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 <me@eisenwave.net>
@AlisdairM
Copy link
Contributor Author

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
Error: Overfull \hbox (23.62003pt too wide) in paragraph at lines 5611--5618
Error: Overfull \hbox (14.74002pt too wide) in paragraph at lines 5611--5618

its associated awaitable completion adaptor.

\pnum
The name \tcode{get_await_completion_adaptor} denotes a query object.
Copy link
Member

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.

Comment on lines +5611 to +5616
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.
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2025-06 LWG Motion 18] P3570R2 optional variants in sender/receiver P3570 R1 optional variants in sender/receiver
2 participants