microsoft / microsoft/STL

`<future>`: Consider supporting `promise<const int>` and `future<const int>`

Open
#2,599 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug vNext
Dominant language
C++
Stars
11.1k
Forks
1.7k
Avg merge
4d 15h
Merged PRs (30d)
22

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 @CaseyCarter in https://github.com/microsoft/STL/pull/2568#discussion_r813608299 .

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the implementation changes from #2568 and locating the existing promise and future tests. Check how const-qualified value types are handled, then add coverage for promise and future; done means these types are supported and the tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing-qa, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.