C1098: Modifiers for non-member or static member functions illegal

[ERROR]

Description

The specified non-member function was declared with a modifier.

Example
  void f() const; // error;

  
Tips

Do not use modifiers on non-member or static member functions.