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 nonmember functions
Remarks
A nonmember function is declared with const, volatile, or another memory-model modifier.
Example
The following example generates C2270:
// C2270.cpp
// compile with: /c
void func1(void) const; // C2270, nonmember function
void func2(void);
class CMyClass {
public:
void func2(void) const;
};