C/C++ Compiler (cl.hlp) (Table of Contents; Topic list)
C2804
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Compiler error C2804
 
     binary operator 'operator' has too many formal parameters
 
     The specified overloaded binary operator was declared with more
     than one parameter.
 
     The following is an example of this error:
 
          class X
          {
             X operator+ ( X , X );  // error, two parameters
             X operator+ ( X );      // OK, one parameter
          };
                                    -♦-