编译器错误 C2979

泛型中不支持显式专用化

未正确声明泛型类。 有关详细信息,请参阅泛型

示例

下面的示例生成 C2979。

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

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