Compiler Error C2917
TOC
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.

Example

// 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()
{
}
Show:
© 2016 Microsoft