Compiler Error C2753
'template' : partial specialization cannot match argument list for primary template
If the template argument list matches the parameter list, the compiler treats it as the same template. Defining the same template twice is not allowed.
Example
The following sample generates C2753 and shows a way to fix it:
// C2753.cpp
// compile with: cl /c C2753.cpp
template<class T>
struct A {};
template<class T>
struct A<T> {}; // C2753
// try the following line instead
// struct A<int> {};
template<class T, class U, class V, class W, class X>
struct B {};
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