Compiler Error C2292
'identifier': best case inheritance representation: 'representation1' declared but 'representation2' required
Compiling the following code with /vmb ("Best-case always" representation) causes C2292.
// C2292.cpp
// compile with: /vmb
class __single_inheritance X;
struct A { };
struct B { };
struct X : A, B { }; // C2292, X uses multiple inheritance
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for