Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *Description Resource Path Location Type
- deleting object of polymorphic class type ‘Vendor_sys::VendorCode’ which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor] PnServer.cpp /PCounter line 467 C/C++ Problem*
- delete pData->unit;
- class my_class {
- private:
- evil_class evil;
- public:
- virtual ~my_class() {/* stuff */}
- virtual int member() { return evil.member(); }
- };
- class NotGoodBase {
- ~NotGoodBase(); // Non-virtual destructor. Possibly added by compiler.
- };
- class UseThisAsBase : public NotGoodBase {
- virtual ~UseThisAsBase(); // Virtual destructor.
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement