E2077 'operator' must be declared with one or no parameters (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

When operator ++ or operator -- is declared as a member function, it must be declared to take either:

  • No parameters (for the prefix version of the operator), or
  • One parameter of type int (for the postfix version)