Fixes related to r312: gcc refuses to erase a const_iterator

This commit is contained in:
Thomas Krijnen
2015-02-17 21:24:18 +00:00
parent b5c9de8d64
commit 6c8a60db6e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ public:
return r;
}
void remove(T* t) {
typename std::vector<T*>::const_iterator it;
typename std::vector<T*>::iterator it;
while ((it = std::find(ls.begin(), ls.end(), t)) != ls.end()) {
ls.erase(it);
}