Vector.cpp:24:27: error: member reference base type 'Vector<T> *' is not a
structure or unionif ( i < 0 || this.size() <= i )
~~~~^~~~~
Vector.cpp:33:26: error: member reference base type 'const Vector<T> *' is not a
structure or unionif (i < 0 || this.size() <= i )
~~~~^~~~~
Vector.cpp:26:32: error: non-constant-expression cannot be narrowed from type
'size_type' (aka 'unsigned long') to 'int' in initializer list
[-Wc++11-narrowing]
throw Range_error{ i };
^
Vector.cpp:44:6: note: in instantiation of member function
'Vector<char>::operator[]' requested here
v[8] = '\0'; // Range_error throw expected.
^
Vector.cpp:26:32: note: insert an explicit cast to silence this issue
throw Range_error{ i };
^
static_cast<int>( )
3 errors generated.