RAD Studio
ContentsIndex
PreviousUpNext
E2330: Operator must be declared as function

An overloaded operator was declared with something other than function type. 

For example:

class A
{
   A& operator +;   ..note missing parenthesis
};

In the example, the function operator '()' is missing, so the operator does not have function type and generates this error.

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