Compiler Error C2264
'function' : error in function definition or declaration; function not called
The function cannot be called due to an incorrect definition or declaration.
The following sample generates C2264:
// C2264.cpp
struct C {
// Delete the following line to resolve.
operator int(int = 0){} // incorrect declaration
};
struct D {
operator int(){return 0;} // OK
};
int main() {
int i;
C c;
i = c; // C2264
D d;
i = d; // OK
}
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