C1082: <FunctionKind> must be non-static member of a class/struct

[ERROR]

Description

The specified overloaded operator was not a member of a class, structure or union, and/or was declared as static. FunctionKind can be a conversion or an operator =, -> or ().

Tips

Declare the function inside a class declaration without the static storage class.