This documentation is archived and is not being maintained.
Compiler Error C2827
Visual Studio 2005
Error Message'operator operator' cannot be globally overridden with unary form
The operator cannot have a unary form outside of an object.
To fix by using the following possible solutions
Make the overloaded operator local to an object.
Choose an appropriate unary operator to overload.