I have a message "pure virtual function call" from MSVC 7.1 in release, when in debug it does not (as the code works correctly). Here is the offending code simplified:
I do not see why it crashes too. Do anyone have any idea?Code:class Base { public Base(); virtual void doSmth() =0; }; class Ext : public Base { Ext(); virtual void doSmth(); }; Base::Base() { doSmth(); } Ext::Ext() : Base() { } void Ext::doSmth() { std::cout << "pwet"; }
Bookmarks