C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
C2805
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2805
 
     binary operator 'operator' has too few formal parameters
 
     The specified binary operator was called with a void parameter
     list.
 
     The following is an example of this error:
 
          class X
          {
          public:
             X operator< ( void );  // error, must take one parameter
             X operator< ( X );     // OK
          };
                                    -♦-