Kompilatorfel C3236

explicit instansiering av en generisk är inte tillåten

Anmärkningar

Kompilatorn tillåter inte explicit instansiering av generiska klasser.

Example

I följande exempel genereras C3236:

// C3236.cpp
// compile with: /clr
generic<class T>
public ref class X {};

generic ref class X<int>;   // C3236

I följande exempel visas en möjlig lösning:

// C3236b.cpp
// compile with: /clr /c
generic<class T>
public ref class X {};