I am trying to override the [] operator of vector to use its at() function instead so it checks for the bounds too. However, it gives me the error: invalid use of incomplete type 'class std::vector<_Tp>'
template <typename T> inline T& vector<T>::operator [] (vector<T>& v, size_t s) {
return v.at(s);
}