RSS
Follow Us
Contribute
 
 
 
 

Error C2804: binary operator (operator) has too many parameters

 
We need YOUR SKILLS in this collaborative work, to build the largest solution center for error messages.

From $1

Table of contents
  1. 1. Cause
  2. 2. Solution
  3. 3. (ToDo)
  4. 4. About This Article

Cause

The overloaded binary operator is declared with more than one parameter. The first parameter of a binary operator, whose type is the operator's enclosing type, is implied. Ex:

// compile with: /clr /c
ref struct Y {
   Y^ operator +(Y^ hY, int i);   // C2804
};

Solution

 

(ToDo)

Write the solution section to improve the article.

About This Article

This article is a derivative work based on Compiler Error C2804 which is provided by MSDN Community Content - Visual C++.

 
 
 
 
Comments