Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 711 Bytes

compiler-error-c2959.md

File metadata and controls

25 lines (20 loc) · 711 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2959
Compiler Error C2959
11/04/2016
C2959
C2959
d66bb2a8-70c3-4209-a358-b0c47f111a50

Compiler Error C2959

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

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

Example

The following sample generates C2959.

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