컴파일러 오류 C2753
'template': 부분 특수화가 기본 템플릿의 인수 목록과 일치할 수 없음
템플릿 인수 목록이 매개 변수 목록과 일치하면 컴파일러는 이를 동일한 템플릿으로 처리합니다. 동일한 템플릿을 두 번 정의할 수 없습니다.
예시
다음 샘플에서는 C2753을 생성하고 이를 해결하는 방법을 보여 줍니다.
// 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 {};