Compiler Error C2627 (Windows CE 5.0)

Send Feedback

'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

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.