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

[DISABLE, INFORMATION, WARNING , ERROR]

Description

Local class declarations would force the compiler to generate local special member functions (Copy Constructor, Default Constructor, Destructor, Assignment 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.