Compiler Error C2507
'identifier' : too many virtual modifiers on the base class
A class or structure is declared as virtual
more than once. Only one virtual
modifier can appear for each class in a list of base classes.
The following sample generates C2507:
// C2507.cpp
// compile with: /c
class A {};
class B : virtual virtual public A {}; // C2507
class C : virtual public A {}; // OK
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