Compiler Error C2792
'super' : this keyword must be followed by '::'
The only token that can follow the keyword __super
is ::
.
The following sample generates C2792:
// C2792.cpp
struct B {
void mf();
};
struct D : B {
void mf() {
__super.(); // C2792
// try the following line instead
// __super::mf();
}
};
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