std::vector<int> v;v.push_back(1);v.push_back(2);auto it = v.erase(v.begin(), v.begin() + 1);bool b = (it == v.begin());Assertion "vector iterators incompatible" fails in the last line. This is because the iterator returned by erase has null pointer to the owning container.
Product Language
Version
Operating System
Operating System Language
Steps to Reproduce
Actual Results
Expected Results