C1047: Local compiler generated <Special member function> not supported

[WARNING]

Description

Local class declarations would force the compiler to generate local special member functions (Copy Constructor, Default Constructor, Destructor, Assignment \c operator). But local functions are not supported.

Example
  ;

  
Tips

If you really want the compiler generated special member functions to be created, then declare the class (or struct) in the global scope.