הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
a generic class or function may not be a member of a template
Remarks
For more information, see Windows Runtime and Managed Templates and Generics.
Example
The following example generates C2959.
// C2959.cpp
// compile with: /clr /c
template <class T> ref struct S {
generic <class U> ref struct GR1; // C2959
};