Код: Выделить всё
#include
#include
using namespace std;
int main()
{
string s1 = "hello";
string s2 = move(s1);
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78677194/why-the-old-object-is-null-after-use-move-in-cpp[/url]Код: Выделить всё
#include
#include
using namespace std;
int main()
{
string s1 = "hello";
string s2 = move(s1);
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78677194/why-the-old-object-is-null-after-use-move-in-cpp[/url]