Compiler Error C3141
'interface_name' : interfaces only support public inheritance
Interfaces defined with the interface (or __interface) keyword only support public inheritance.
The following sample generates C3141:
// C3141.cpp
__interface IBase {};
__interface IDerived1 : protected IBase {}; // C3141
__interface IDerived2 : private IBase {}; // C3141
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