नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'class' : type-class-id redefined as a data member of 'identifier'
Remarks
You can't use a generic or template class as a data member.
This error is obsolete in Visual Studio 2022 and later versions.
Examples
The following example generates C2932:
// C2932.cpp
// compile with: /c
template<class T>
struct TC {};
struct MyStruct {
int TC<int>; // C2932
int TC; // OK
};
C2932 can also occur when using generics:
// C2932b.cpp
// compile with: /clr /c
generic<class T>
ref struct GC {};
struct MyStruct {
int GC<int>; // C2932
int GC; // OK
};