Бележка
Достъпът до тази страница изисква удостоверяване. Можете да опитате да влезете или да промените директориите.
Достъпът до тази страница изисква удостоверяване. Можете да опитате да промените директориите.
'identifier' : 'specifier' storage-class specifier illegal on members
Remarks
The storage class cannot be used on class members outside the declaration. To fix this error, remove the unneeded storage class specifier from the definition of the member outside the class declaration.
Example
The following example generates C2720 and shows how to fix it:
// C2720.cpp
struct S {
static int i;
};
static S::i; // C2720 - remove the unneeded 'static' to fix it