Compiler Error C3156
'class' : you cannot have a local definition of a managed or WinRT type
A function cannot contain the definition, or declaration, of a managed or WinRT class, struct, or interface.
Example
The following sample generates C3156.
// C3156.cpp
// compile with: /clr /c
void f() {
ref class X {}; // C3156
ref class Y; // C3156
}
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