Pass erase ids by const reference