Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
'function' : modifiers not allowed on static member functions
Remarks
A static member function is declared with a memory-model specifier, such as const or volatile, and such modifiers are not allowed on static member functions.
Example
The following example generates C2272:
// C2272.cpp
// compile with: /c
class CMyClass {
public:
static void func1() const volatile; // C2272 func1 is static
void func2() const volatile; // OK
};