Implement const operator[] in IArrayMemory interface
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 65/100
Research direction
Open cpp/Platform.Memory/IArrayMemory.h at line 9 and inspect the commented operator[] declarations and nearby interface context. Confirm the regular and const overloads are declared with const-correct return and access behavior, then verify that the interface exposes both forms without breaking its existing usages.
Written by the indexing model from the issue text.
Description
Location: cpp/Platform.Memory/IArrayMemory.h:9
Current code:
//virtual TElement& operator[](std::size_t index) {}
// TODO: impl const
//virtual const TElement& operator[](std::size_t index) const {}
Issue:
The IArrayMemory interface is missing the implementation of the const version of operator[]. Currently both the regular and const versions are commented out.
Suggestion:
Implement both versions of the operator[] to provide proper const-correctness in the interface.
- Dominant language
- C#
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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.
More from linksplatform/Memory
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
linksplatform/Memory#90 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
linksplatform/Memory#88 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
linksplatform/Memory#87 ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
linksplatform/Memory#75 · 7 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
linksplatform/Memory#67 ·
All issues in linksplatform/Memory
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·