Compiler Error C2809
'operator operator' has no formal parameters
The operator lacks required parameters.
The following sample generates C2809:
// C2809.cpp
// compile with: /c
class A{};
int operator+ (); // C2809
int operator+ (A); // OK
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
'operator operator' has no formal parameters
The operator lacks required parameters.
The following sample generates C2809:
// C2809.cpp
// compile with: /c
class A{};
int operator+ (); // C2809
int operator+ (A); // OK