Код: Выделить всё
int main()
{
Mystring larry3 = "larry3"; //will call no-arg ctor not move ctor.
Mystring larry4 = larry3; // deep copy ctor is being called correctly
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79199117/why-is-my-move-assignment-operator-not-working-properly-it-appears-its-messing[/url]
Мобильная версия