I’m having really hard time to learn nullifying the “other” object, I’ve just read the whole big article about move semantics here and I’m disappointed because it does not cover nullifying.
Please explain me do we really need to nullify all the members of “other” or just pointers that are pointing to dynamically allocated memory?
Why would we care about nullifying the members (of other object) that are not on the heap? any good reason?
After you’ve moved from the object, its destructor is still going to get called once it’s cleaned up. This means that it needs to know whether or not it should free resources it owns, and hence they need to be nullified (or whatever you call it!) so pointers don’t get double-deleted etc.