|
|
|
|
|
by innot
2530 days ago
|
|
> Once you std::move an object and pass it to someone who takes an rvalue-reference, your local object may very well end up in an invalid state. As far as I remember, move constructors/assignments must leave the moved-from object in a valid state - just that the standard doesn't say anything about what that state is for standard classes. Also, I have seen code where some kind of "result" can be moved from an object and then re-generated from scratch with different inputs. In that case it was perfectly valid to use it after move. But that's nitpicking, anyways. |
|