Export (0) Print
Expand All
Expand Minimize

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:
© 2014 Microsoft