cppcheck/samples/erase
Paul Fultz II a08a9c1349 Switch to use lifetime analysis for iterators and pointers to invalid containers
This will diagnose more issues such as:

```cpp
void f(std::vector<int> &v) {
    auto v0 = v.begin();
    v.push_back(123);
    std::cout << *v0 << std::endl;
}
```
2019-07-18 10:56:44 +02:00
..
bad.cpp
good.cpp
out.txt Switch to use lifetime analysis for iterators and pointers to invalid containers 2019-07-18 10:56:44 +02:00