Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
illegal pure syntax, must be '= 0'
A pure virtual function is declared with incorrect syntax.
The following sample generates C2258:
// C2258.cpp
// compile with: /c
class A {
public:
void virtual func1() = 1; // C2258
void virtual func2() = 0; // OK
};