Merk
Tilgang til denne siden krever autorisasjon. Du kan prøve å logge på eller endre kataloger.
Tilgang til denne siden krever autorisasjon. Du kan prøve å endre kataloger.
'identifier' : only member functions and bases can be virtual
Remarks
A global function or class is declared virtual. This is not allowed.
Example
The following example generates C2575:
// C2575.cpp
// compile with: /c
virtual void func() {} // C2575
void func2() {}
struct A {
virtual void func2(){}
};