The following example will not compile using g++ 4.8.2:
#include #include using namespace std; int main() { vector
This is a known bug in gcc: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57158
erase requires an iterator instead of a const_iterator with current gcc's.