Providing correct move semantics
I am currently trying to figure out how to do move semantics correctly with an object which contains a pointer to allocated memory. I have a big datastructure, which contains an internal raw pointer to the actual storage (for efficiency reasons). Now I added a move constructor and move operator=() . In these methods I am std::move() ing the pointer to the new structure. However I am not sure what to do with the pointer from the other structure. Here is a simple example of what I am doing: class big_and_complicated { // lots of complicated code }; class structure { public: structure() : m_data(