Compiler Error C2622 (Windows CE 5.0)
member 'identifier' of union 'union' has assignment operator
A union member cannot have an assignment operator.
The following example shows ways this error might occur.
class A
{
A& operator= ( const A& ); // A's assignment operator
};
union U
{
A a; // error
};
Send Feedback on this topic to the authors