C1802: Must be static member

[ERROR]

Description

A non-static member has been accessed inside a static member function.

Example
  struct A {

  
    static void f();

  
    int i;

  
  };

  
  void A::f() {

  
    i=3;  // error

  
  }

  
Tips

Remove the static specifier from the member function, or declare the member to be accessed as static.