RAD Studio |  |

E2076: Overloadable operator expected (C++)

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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!