Compiler Error C2287
'class': inheritance representation: 'representation1' is less general than the required 'representation2'
A class is declared with a simpler representation than required.
The following sample generates C2287:
// C2287.cpp
// compile with: /vmg /c
class __single_inheritance X;
class __single_inheritance Y;
struct A { };
struct B { };
struct X : A, B { }; // C2287 X uses multiple inheritance
struct Y : A { }; // OK
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir