Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2828
Collapse the table of content
Expand the table of content

Compiler Error C2828

'operator operator' cannot be globally overridden with binary form

The operator cannot have a binary 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.

Community Additions

© 2015 Microsoft