E2076 Overloadable operator expected (C++)

From RAD Studio
Jump to: navigation, search

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

Almost all C++ operators can be overloaded.

These are the only ones that can't be overloaded:

  • the field-selection dot (.)
  • dot-star (.*)
  • double colon (::)
  • conditional expression (?:)

The preprocessor operators (# and ##) are not C or C++ language operators and thus can't be overloaded.

Other non-operator punctuation, such as semicolon (;), can't be overloaded.