Compiler Error C2720
'identifier' : 'specifier' storage-class specifier illegal on members
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 sample 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
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre