c++ - Why should I not try to use "this" value after "delete this"? -


This usage is discussed in the construction . 4 restrictions are listed.

Restrictions 1 to 3 seem fair enough but why restriction 4 is there that I should not check it ", compare it with another indicator, compare it with tap, print it, insert it Do something with it "?

I mean this is yet another indicator why I can not send it to reinterpret_cast in int >

After you delete it, nothing can do with the indicator (this, or any other indicator), that the hardware (and some older machines) was trying to load an invalid memory address in a register. Although it can be cured all modern hardware, the standard says that the only thing you can do to make an invalid indicator (unchanged or deleted) is to be assigned (either by zero or any other valid indicator ).


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -