Skip to content

Fix aspect lint findings - #949

Open
sergejwinterbmw wants to merge 1 commit into
eclipse-score:mainfrom
sergejwinterbmw:sw/score/lint_findings
Open

Fix aspect lint findings#949
sergejwinterbmw wants to merge 1 commit into
eclipse-score:mainfrom
sergejwinterbmw:sw/score/lint_findings

Conversation

@sergejwinterbmw

Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines +47 to +56
const_iterator begin() const noexcept
{
return cbegin();
}

const_iterator end() const noexcept
{
return cend();
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these not return iterator?

@limdor limdor Aug 18, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it was a very intentional design that this map view does not allow you to get none const iterators.
I would make begin() const to return const_iterator even if this is not fulfilling container requirements.

We are anyway as of today not fulfilling container requirements by not providing begin() and end()

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

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

3 participants