Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 854 Bytes

compiler-error-c2500.md

File metadata and controls

31 lines (24 loc) · 854 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2500
Compiler Error C2500
11/04/2016
C2500
C2500
6bff8161-dc9a-48ca-91f1-fd2eefdbbc93

Compiler Error C2500

'identifier1' : 'identifier2' is already a direct base class

A class or structure appears more than once in a list of base classes.

A direct base is one mentioned in the base list. An indirect base is a base class of one of the classes in the base list.

A class cannot be specified as a direct base class more than once. A class can be used as an indirect base class more than once.

The following sample generates C2500:

// C2500.cpp// compile with: /cclassA {}; classB : publicA, publicA {}; // C2500// OKclassC : publicA {}; classD : publicA {}; classE : publicC, publicD {};
close