I'm currently implementing a Vector class that is supposed to handle the math.
This class has two members std::vector<double> vector_ and std::array<std::size_t, 2> size_.
Now I want to write a move constructor Vector(Vector&& other);. I've tried multiple ways, including Vector(Vector&& other) = default;, but none seems to do the job correctly. I always end up with both objects having the same size_ array, instead of the other having {0, 0}.
Aren't the default move constructor or std::move(...) supposed to move the contents and set the other's content to their default values?