Compiler Error C2267
'function' : static functions with block scope are illegal
A local function is declared static
. Static functions must have global scope.
The following sample generates C2267:
// C2267.cpp
static int func2(); // OK
int main() {
static int func1(); // C2267
}
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