Andy's next on move semantics:
Moving an Object Does Not Destroy The Original
by Andrew Koenig
From the article:
Recall first that objects are generally moved instead of copied because the originals are about to go away. When I learned this fact, I thought at first that moving an object should destroy the original. ...
I was surprised to learn that that is not what happens. Instead, whenever a program moves an object, it must leave that object with a valid value so that it can be destroyed later. ...
Add a Comment
Comments are closed.