Skip to content

remove test for get_env noexcept-ness from inline_scheduler #349

@ericniebler

Description

@ericniebler

[exec.inline.scheduler]/p3.2 reads

  • 3.2 the expression get_completion_scheduler<set_value_t>(get_env(sndr)) has type​ inline_scheduler and is potentially-throwing if and only if get_env(sndr) is potentially-throwing.

get_env(sndr) is never potentially-throwing because it mandates that sndr.get_env() cannot throw. See [exec.get.env].

also, get_completion_scheduler<set_*_t>(attrs) mandates that attrs.query(get_completion_scheduler<set_*_t>) cannot throw.

Proposed resolution

Change [exec.inline.scheduler]/p3.2 as follows:

  • 3.2 the expression get_completion_scheduler<set_value_t>(get_env(sndr)) has type​ inline_scheduler and is potentially-throwing if and only if get_env(sndr) is potentially-throwing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bugSomething isn't workingpending-wg21A paper or an LWG issue exits

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions