Skip to content

use const_iterator where possible#4662

Merged
danmar merged 2 commits intocppcheck-opensource:mainfrom
firewave:cbegin-2
Dec 30, 2022
Merged

use const_iterator where possible#4662
danmar merged 2 commits intocppcheck-opensource:mainfrom
firewave:cbegin-2

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

@firewave firewave commented Dec 20, 2022

Turns out there's not much which cannot be done with a const_iterator so it can be used in most cases.

We cannot use it with all calls though since the STL debug containers in GCC 4.8 are not supporting it completely.

@firewave firewave changed the title always use const_iterator where possible use const_iterator where possible Dec 21, 2022
@firewave firewave marked this pull request as ready for review December 27, 2022 21:24
@danmar danmar merged commit 1cfe49e into cppcheck-opensource:main Dec 30, 2022
@firewave firewave deleted the cbegin-2 branch December 30, 2022 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants