Compiler Error C2827

'operator symbol' cannot be globally overridden with unary form

The given operator cannot have a unary form outside of an object.

Make sure that the overloaded operator is local to the object or choose an appropriate unary operator to overload.