Compiler Error C3264
'class' : a class-constructor cannot have a return type
Class constructors cannot have return types.
The following sample generates C3264:
// C3264_2.cpp
// compile with: /clr
ref class X {
public:
static int X() { // C3264
}
/* use the code below to resolve the error
static X() {
}
*/
};
int main() {
}
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