`<future>`: Consider supporting `promise<const int>` and `future<const int>`
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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