Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error: need 'typename' before 'std::vector<T>::size_type' because 'std::vector<T>' is a dependent scope
- template<class T>
- class MyVector {
- std::vector<T> vec;
- public:
- using size_type = std::vector<T>::size_type;
- size_type Size() {
- return vec.size();
- }
- };
Add Comment
Please, Sign In to add comment