Compiler Error C2953

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C2953.

identifier' : class template has already been defined

Check the source file and include files for other definitions.

The following sample generates C2953:

// C2953.cpp  
// compile with: /c  
template <class T>  class A {};  
template <class T>  class A {};   // C2953  
template <class T>  class B {};   // OK  

Show: