Call base vector::insert() explicitly.

This commit is contained in:
Egor Pugin 2020-12-26 03:37:21 +03:00
parent 4fc467a922
commit b4495a6bb5

View File

@ -666,7 +666,7 @@ void GenericVector<T>::set(const T& t, int index) {
// at the specified index.
template <typename T>
void GenericVector<T>::insert(const T& t, int index) {
insert(begin() + index, t);
vector::insert(begin() + index, t);
}
// Removes an element at the given index and