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
};
Write the solution section to improve the article.
This article is a derivative work based on Compiler Error C2804 which is provided by MSDN Community Content - Visual C++.