Warning: 'std::vector<T>::size_type' : dependent name is not a type
Error error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
template<typename T>
class MyVector {
private:
std::vector<T> vector;
public:
// add 'typename' to clarify that the dependent name is the name of a type
typename std::vector<T>::size_type size() const {
return vector.size();
}
};