Compiler Error C2622 (Windows CE 5.0)

Send Feedback

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

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.