Compiler Error C2979
Visual Studio 2015
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 C2979.
explicit specializations are not supported in generics
A generic class was declared incorrectly. See Generics for more information.
The following sample generates C2979.
// C2979.cpp
// compile with: /clr /c
generic <>
ref class Utils {}; // C2979 error
generic <class T>
ref class Utils2 {}; // OK
Show: