Compiler Error C2917
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error C2917

'name' : invalid template-parameter

A template parameter list contains an identifier that was not a template parameter.


// C2917.cpp
template<class T> class Vector
   void sort();

template<class T*> void Vector<T>::sort()   // C2917
// try the following line instead
// template<class T> void Vector<T>::sort()

int main()
© 2016 Microsoft