在我最初的基本测试中,这样做是完全安全的.然而,它已经让我吃惊试图操纵this该功能后delete小号this可能是一个运行时错误.这是真的,通常是安全的delete this吗?或者只有某些安全的情况?
this
delete
delete this
c++ runtime-error self-destruction
c++ ×1
runtime-error ×1
self-destruction ×1