Kompilatorfel C3216

villkor måste vara en allmän parameter, inte "typ"

Anmärkningar

En begränsning var dåligt utformad.

Example

I följande exempel genereras C3216:

// C3216.cpp
// compile with: /clr
interface struct A {};

generic <class T>
where F : A   // C3216
// Try the following line instead:
// where T : A    // C3216
ref class C {};

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

// C3216b.cpp
// compile with: /clr /c
interface struct A {};

generic <class T>
where T : A
ref class C {};