नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'identifier' : union cannot have base classes
Remarks
A union derives from a class, structure, or union. This is not allowed. Declare the derived type as a class or structure instead.
Example
The following example generates C2570:
// C2570.cpp
// compile with: /c
class base {};
union hasPubBase : public base {}; // C2570
union hasNoBase {}; // OK