#include <vector>
int main()
{
std::vector<int> vector;
vector.push_back(0);
std::vector<int>::const_iterator vectorItr = vector.begin();
vector.erase(vectorItr);
}
I2luY2x1ZGUgPHZlY3Rvcj4KCmludCBtYWluKCkKewogICAgc3RkOjp2ZWN0b3I8aW50PiB2ZWN0b3I7CiAgICB2ZWN0b3IucHVzaF9iYWNrKDApOwoKICAgIHN0ZDo6dmVjdG9yPGludD46OmNvbnN0X2l0ZXJhdG9yIHZlY3Rvckl0ciA9IHZlY3Rvci5iZWdpbigpOwogICAgdmVjdG9yLmVyYXNlKHZlY3Rvckl0cik7Cn0=
prog.cpp: In function ‘int main()’:
prog.cpp:9:27: error: no matching function for call to ‘std::vector<int>::erase(std::vector<int>::const_iterator&)’
prog.cpp:9:27: note: candidates are:
In file included from /usr/include/c++/4.7/vector:70:0,
from prog.cpp:1:
/usr/include/c++/4.7/bits/vector.tcc:135:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*]
/usr/include/c++/4.7/bits/vector.tcc:135:5: note: no known conversion for argument 1 from ‘std::vector<int>::const_iterator {aka __gnu_cxx::__normal_iterator<const int*, std::vector<int> >}’ to ‘std::vector<int>::iterator {aka __gnu_cxx::__normal_iterator<int*, std::vector<int> >}’
/usr/include/c++/4.7/bits/vector.tcc:147:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*]
/usr/include/c++/4.7/bits/vector.tcc:147:5: note: candidate expects 2 arguments, 1 provided