std::move inside move assignment operator
问题 I read in another question that when implementing a move constructor it is good practice to std::move each member in the initializer list because if the member happens to be another object then that objects move constructor will be called. Like so... //Move constructor Car::Car(Car && obj) : prBufferLength(std::move(obj.prBufferLength)), prBuffer(std::move(obj.prBuffer)) { obj.prBuffer = nullptr; obj.prBufferLength = 0; } However in all the sample move assignment operators I've seen, there