Export (0) Print
Expand All
Expand Minimize

Compiler Error C2979

Error Message

explicit specializations are not supported in generics

A generic class was declared incorrectly. See Generics (Visual C++) for more information.

Example

The following sample generates C2979.

// C2979.cpp
// compile with: /clr /c
generic <> 
ref class Utils {};   // C2979 error

generic <class T>
ref class Utils2 {};   // OK

Community Additions

ADD
Show:
© 2015 Microsoft