Skip to content

<future>: Consider supporting promise<const int> and future<const int> #2599

Description

Followup to #2488 fixed by #2568. Nothing in the Standard appears to forbid promise<const int> and future<const int>, so they should work. It should be possible to slightly refine the new code added by #2568 to handle const qualifiers, but additional changes may be necessary, and test coverage is definitely necessary.

Noticed by Casey Carter (@CaseyCarter) in #2568 (comment) .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingvNextBreaks binary compatibility

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions