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

Make any_sender_of<> play nicer with MSVC #619

Merged
merged 1 commit into from
Sep 11, 2024

Commits on Sep 11, 2024

  1. Make any_sender_of<> play nicer with MSVC

    `unifex::any_sender_of<>` needs a type-erased operation state, which it
    creates with `unifex::any_unique<concrete-op>`. The tricky bit is that
    operation states are expected to be immovable so constructing that
    `any_unique` requires care. The old approach was to use a type called
    `_rvo<>` that implicitly converted to the desired type, but it was
    brittle. This change invents a new opstate type with two jobs:
     1. wrap some other opstate, and
     2. construct that other opstate by invoking a callable.
    ispeters committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    4e4f5e9 View commit details
    Browse the repository at this point in the history