daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Apr 17th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top