Edit

Share via


Compiler Error C3923

'member' : local class, struct, or union definitions are not allowed in a member function of a WinRT or managed class

Example

The following sample generates C3923.

// C3923.cpp
// compile with: /clr /c
ref struct x {
   void Test() {
      struct a {};   // C3923
      class b {};   // C3923
      union c {};   // C3923
   }
};