Currently I'm trying to erase a sequence of iterators from a set, however GCC's standard library seems to be broken because std::set::erase(iterator) should return the an iterator (next iterator), however in GCC it returns void (which is standard?)
Anyways I want to write:
myIter = mySet.erase(myIter);
But GCC doesn't like it... So Is it safe to write this instead?
mySet.erase(myIter++);
Thanks!
Edit: And yes I'm checking against mySet.end();