Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2805
Collapse the table of content
Expand the table of content

Compiler Error C2805

binary 'operator operator' has too few parameters

The binary operator has no parameters.

The following sample generates C2805:

// C2805.cpp
// compile with: /c
class X {
public:
   X operator< ( void );   // C2805 must take one parameter
   X operator< ( X );   // OK
};

Community Additions

ADD
Show:
© 2015 Microsoft