Compiler Error C2627 (Windows CE 5.0)
'identifier' : member function defined in unnamed class
An anonymous union cannot have member functions.
void main()
{
union {
int i;
void func( void ); // Error, union is anonymous.
};
union U {
void func2( void ); // OK.
};
}
Send Feedback on this topic to the authors