C1132: Cannot define an anonymous type inside parentheses

[ERROR]

Description

An anonymous type was defined inside parentheses. This is illegal in C++.

Example
  void f(enum {BB,AA} a) { //  C ok, C++ error

  
  }

  
Tips

Define the type in the global scope.