NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2669

member function not allowed in anonymous union

Anonymous unions cannot have member functions. The following sample generates C2669:

struct X {
   union {
      int i;
      void f() {   // C2669, remove function
         i = 0; 
      }
   };
};

void main() {
}

See Also

Anonymous Unions