Compiler Error C2917
'name' : invalid template-parameter
Remarks
A template parameter list contains an identifier that wasn't a template parameter.
This error is obsolete in Visual Studio 2022 and later versions.
Example
The following sample generates C2917.
// C2917.cpp
// compile with: /c
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() {}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for