RAD Studio
ContentsIndex
PreviousUpNext
E2076: Overloadable operator expected

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.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!