You can't erase with a const iterator.