Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 554 Bytes

compiler-error-c2575.md

File metadata and controls

26 lines (21 loc) · 554 Bytes
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: Compiler Error C2575
Compiler Error C2575
11/04/2016
C2575
C2575
9eb45706-37ef-4481-b373-6d193ba13634

Compiler Error C2575

'identifier' : only member functions and bases can be virtual

A global function or class is declared virtual. This is not allowed.

The following sample generates C2575:

// C2575.cpp// compile with: /cvirtualvoidfunc() {} // C2575voidfunc2() {} structA { virtualvoidfunc2(){} };
close