Compiler Error C2959


For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

a generic class or function may not be a member of a template

For more information, see Windows Runtime and Managed Templates and Generics.

The following sample generates C2959.

// C2959.cpp  
// compile with: /clr /c  
template <class T> ref struct S {  
   generic <class U> ref struct GR1;   // C2959