Compile error for vector<T>->erase() -- Geant 10.6

Thank you very much! I have changed gcc into 8.3.1 from devtoolset-8 and now it works!