Open
Description
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 notvoid
:
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 ...".