Wait, but what if you have
std::string str1{"Apple"}; std::string str2 = std::move(str1);
Isn't str1 in an invalid (err, unspecified?) state and you shouldn't use it? It's not `null` sure, but it's not good to use.
std::string str1{"Apple"}; std::string str2 = std::move(str1);
Isn't str1 in an invalid (err, unspecified?) state and you shouldn't use it? It's not `null` sure, but it's not good to use.
It might not be null, but I can't do much more with it than I can with null. I need to assign something new first
I have a hard time understanding why "I could just be using a new variable" follows from "it won't have a useful value".