cplusplus / cplusplus/draft

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

Open
#7,222 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

lwg
Dominant language
TeX
Stars
221
Forks
813
Avg merge
16h 4m
Merged PRs (30d)
36

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the fold-expressions in [[exec.when.all]] and [[exec.snd.expos]], then compare their wording with LWG 3755. Determine whether the comma-expression result should be cast to void and whether the change is editorial or requires an LWG issue; done means the required resolution path is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.