C1051: Invalid function body

[ERROR]

Description

The function body of a member function inside a class declaration is invalid.

Example
  struct A {

  
    void f() { {{int i; }

  
  };

  
Tips

The function body of a member function inside a class declaration must have the same number of "{" as "}".