Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 638 Bytes

compiler-error-c2507.md

File metadata and controls

23 lines (19 loc) · 638 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2507
Compiler Error C2507
11/04/2016
C2507
C2507
f102aff5-de7d-4c3f-9cac-2ddf9ce02b14

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: /cclassA {}; classB : virtualvirtual public A {}; // C2507classC : virtual public A {}; // OK
close