Skip to content
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

[exec] Cast the return value of the comma expression to void? #7222

Open
hewillk opened this issue Aug 14, 2024 · 3 comments
Open

[exec] Cast the return value of the comma expression to void? #7222

hewillk opened this issue Aug 14, 2024 · 3 comments
Labels
lwg Issue must be reviewed by LWG.

Comments

@hewillk
Copy link
Contributor

hewillk commented Aug 14, 2024

There are two (perhaps more) places in [exec] where fold-expression is used to expand the function: [exec.when.all] and [exec.snd.expos]:

[](auto&, auto&, auto&... ops) noexcept -> void {
  (execution::start(ops), ...);
}

Do we need to convert the return result to void as LWG 3755 does to conform to the current best practice of the standard? Is this editorial, or does it require an LWG? Or maybe this is not necessary at all?

@frederick-vs-ja
Copy link
Contributor

frederick-vs-ja commented Aug 14, 2024

Does the return value of execution::start (execution::start_t::operator()) even make sense? If not, perhaps we should just submit an LWG issue to specify that execution::start always returns void.

FWIW, stdexec's start is already always returning void.

@jensmaurer
Copy link
Member

Please submit as an LWG issue. The discussion around LWG3755 indicates there are some non-trivial considerations floating around.

@jensmaurer jensmaurer added the lwg Issue must be reviewed by LWG. label Aug 14, 2024
@frederick-vs-ja
Copy link
Contributor

LWG4143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lwg Issue must be reviewed by LWG.
Projects
None yet
Development

No branches or pull requests

3 participants