Compiler Error C2592

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C2592.

class': 'base_class_2' is inherited from 'base_class_1' and cannot be re-specified

You can only specify base classes that do not inherit from other base classes. In this case, only base_class_1 is needed in the specification of class because base_class_1 already inherits base_class_2.

Show: