Guest User

Untitled

a guest
Apr 17th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. error: need 'typename' before 'std::vector<T>::size_type' because 'std::vector<T>' is a dependent scope
  2.  
  3. template<class T>
  4. class MyVector {
  5.  
  6. std::vector<T> vec;
  7.  
  8. public:
  9.  
  10. using size_type = std::vector<T>::size_type;
  11.  
  12. size_type Size() {
  13. return vec.size();
  14. }
  15.  
  16. };
Add Comment
Please, Sign In to add comment