warning: deleting object of abstract/polymorphi class type which has non-virtual destructor_deleting object of abstract class type 'worker' wh-CSDN博客网友收藏

warning: deleting object of abstract/polymorphi class type which has non-virtual destructor_deleting object of abstract class type 'worker' wh-CSDN博客

文章浏览阅读2.3k次,点赞5次,收藏15次。warning: deleting object of abstract class type 'XXXX' which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]|或warning: deleting object of polymorphic class type which has non_virtual destructor如果基......
阅读全文