Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 815 Bytes

compiler-error-c2753.md

File metadata and controls

32 lines (25 loc) · 815 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2753
Compiler Error C2753
11/04/2016
C2753
C2753
92bfeeac-524a-4a8e-9a4f-fb8269055826

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 {};