which is right?
std::string get_string()
{
std::string result;
// ... more operations.
return std::move(result);
}
Or
std::string&& get_string()
{
std::string result;
// ... more operations
return std::move(result);
}
?
If I use std::move, what should be type of function?