Move semantic: Why is it called a copy constructor in the return statement, when the argument is forced to be passed by rvalue reference?
Consider the following code:
What is the correct way to std::move a parameter into a class constructor? [duplicate]
This question already has answers here: Should I always use std::move in a constructor? (2 answers) What is std::move(), and when should it be used? (9 answers) Why can we use `std::move` on a `const` object? (6 answers) Closed 4 mins ago. The basic version of my situation looks like this. class MyClass { public: […]