Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'identifier' : union cannot have base classes
A union derives from a class, structure, or union. This is not allowed. Declare the derived type as a class or structure instead.
The following sample generates C2570:
// C2570.cpp
// compile with: /c
class base {};
union hasPubBase : public base {}; // C2570
union hasNoBase {}; // OK