Compiler Error C2659
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error C2659

Error Message

'operator' : function as left operand

An overloaded function was on the left side of the specified operator.

The following sample generates C2659:

// C2659.cpp
int func( int );
int func( double );
int main() {
   func = 10;   // C2659
© 2016 Microsoft