Muistiinpano
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoja.
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoja.
static member 'operator operator' has no formal parameters
Remarks
An operator declared by a static member function must have at least one parameter.
Example
The following example generates C2802:
// C2802.cpp
// compile with: /clr /c
ref class A {
static operator+ (); // C2802
static operator+ (A^, A^); // OK
};