Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
static member 'operator operator' has no formal parameters
An operator declared by a static
member function must have at least one parameter.
The following sample generates C2802:
// C2802.cpp
// compile with: /clr /c
ref class A {
static operator+ (); // C2802
static operator+ (A^, A^); // OK
};