- 链接地址:https://blog.csdn.net/weixin_44143702/article/details/106353774#comments_21504747
- 链接标题:warning: deleting object of abstract/polymorphi class type which has non-virtual destructor_deleting object of abstract class type 'worker' wh-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:1285
文章浏览阅读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如果基类里有虚函数,然后定义了基类._deleting object of abstract class type 'worker' which has non-virtual destru
版权声明:本文发布于特牛生活网 内容均来源于互联网 如有侵权联系删除