Compiler Error C2827
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error C2827

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

  1. Make the overloaded operator local to an object.

  2. Choose an appropriate unary operator to overload.

Show:
© 2016 Microsoft