Compiler Error C3229

'type' : indirections on a generic type parameter are not allowed

You cannot use generic parameters with *, ^, or &.

Examples

The following sample generates C3229.

// C3229.cpp
// compile with: /clr /c
generic <class T>
ref class C {
   T^ t;   // C3229
};

// OK
generic <class T>
ref class D {
   T u;
};

The following sample generates C3229.

// C3229_b.cpp
// compile with: /clr /c
generic <class T>   // OK
ref class Utils {
   static void sort(T elems[], size_t size);   // C3229
   static void sort2(T elems, size_t size);   // OK
};