Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. *Description Resource Path Location Type
  2. 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*
  3.  
  4. delete pData->unit;
  5.  
  6. class my_class {
  7. private:
  8. evil_class evil;
  9. public:
  10. virtual ~my_class() {/* stuff */}
  11. virtual int member() { return evil.member(); }
  12. };
  13.  
  14. class NotGoodBase {
  15. ~NotGoodBase(); // Non-virtual destructor. Possibly added by compiler.
  16. };
  17.  
  18. class UseThisAsBase : public NotGoodBase {
  19. virtual ~UseThisAsBase(); // Virtual destructor.
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement