Skip to content

[exec.snd.expos] Not clear if get-domain-late should evaluate the get_domain() expression or default-construct a domain of the type returned by get_domain() #324

Open
@lewissbaker

Description

@lewissbaker

The wording in [exec.snd.expos] p14.2 (see https://eel.is/c++draft/exec#snd.expos-14.2) is written as follows:

  • Otherwise,
return Domain();

where Domain is the first of the following expressions that is well-formed and whose type is not void:

  • get_domain(get_env(sndr))
  • completion-domain<void>(sndr)
  • get_domain(env)
  • get_domain(get_scheduler(env))
  • default_domain()

However, since Domain is an expression, the statement return Domain(); looks like it's trying to invoke the result of the expression, which is probably not what was intended.

I suspect it should instead say "where Domain is the type of the first of the following expressions that is well-formed ...".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwording

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions