Should “delete this” be called from within a member method?

前端 未结 12 2002
醉酒成梦
醉酒成梦 2020-12-03 10:55

I was just reading this article and wanted SO folks advice:

Q: Should delete this; be called from within a member method?

12条回答
  •  渐次进展
    2020-12-03 11:06

    1. delete this can not be called from a non member function :)
    2. It is a bad idea to do until you understand it's consequences.

提交回复
热议问题