Export (0) Print
Expand All
Expand Minimize

Compiler Error C3282

Error Message

generic parameter lists can only appear on managed classes, structs, or functions

A generic parameter list was used incorrectly. For more information, see Generics (Visual C++).

Example

The following sample generates C3282.

// C3282.cpp
// compile with: /clr /c
generic <typename T> int x;   // C3282

ref struct GC0 {
   generic <typename T> int x;   // C3282
};

// OK
generic <typename T>
ref class M {};

Community Additions

ADD
Show:
© 2014 Microsoft