I have written a move constructor for a class in the following way:
class A { std::vector<double> m; A(A&& other) : m{other.m} { } } Is this the correct way to move other.m to m?
Should I be doing this instead?
A(A&& other) : m{std::move(other.m)} { } Or perhaps I should be doing something else entirely?