3 ms·
That’s really not a thing. By default it is correct, you have to go out of your way to make it incorrect.
by jandrewrogers 1y ago
That’s really not a thing. By default it is correct, you have to go out of your way to make it incorrect.
- nixpulvis 1y agoIt's actually really easy... std::vector<int> a = {1,2,3}; // Added this without thinking about future uses of a. std::vector<int> b = std::move(a); use_vec(b); // ... use_vec(a);