This was flagged by coverity but doesn't seem to be an actual issue in g++/clang. It technically leaves the moved rvalue in a "valid but undefined state", so it is best to avoid. The single copy into an lvalue is (I think) cheap
This was flagged by coverity but doesn't seem to be an actual issue in g++/clang. It technically leaves the moved rvalue in a "valid but undefined state", so it is best to avoid. The single copy into an lvalue is (I think) cheap