danmar/cppcheck — comment on commit 433f4640a9639eefb3270ce51619055230605b17
File: cli/cppcheckexecutor.cpp line 110
By edward-san:

Uh, I don't know how to implement it correctly:

```C++
for (std::vector::iterator iterIgnored = ignored.begin(); iterIgnored != ignored.end(); ++iterIgnored) {
const std::string extension = Path::getFilenameExtension(ignored[ignored.size()-1-*iterIgnored]);
if (extension == ".h" || extension == ".hpp") {
iterIgnored = ignored.erase(iterIgnored);
```
The second line gives me an error. Question: how can I access an array with an iterator?