class A { public: virtual void method() = 0; } class B : public A { virtual void method() { // do something } } |
class A { public: virtual void method() {} // <-- the only change } class B : public A { virtual void method() { // do something } } |
extern "C" void __cxa_pure_virtual() { while (1) ; } |