#include <iostream>
#include <string>
using namespace std;
class A
{
public:
A() {};
//A( A && other ) : a(std::move(other.a)) {}
std::wstring a;
};
int main( int argc, char * argv[] )
{
A a1;
a1.a = L"test";
A a2(std::move(a1));
a2.a = L"bob";
wcout << a1.a << L" : " << a2.a << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIEEKewpwdWJsaWM6CiAgICBBKCkge307CgkvL0EoIEEgJiYgb3RoZXIgKSA6IGEoc3RkOjptb3ZlKG90aGVyLmEpKSB7fQoJc3RkOjp3c3RyaW5nIGE7Cn07CgppbnQgbWFpbiggaW50IGFyZ2MsIGNoYXIgKiBhcmd2W10gKQp7CglBIGExOwoJYTEuYSA9IEwidGVzdCI7CgoJQSBhMihzdGQ6Om1vdmUoYTEpKTsKCWEyLmEgPSBMImJvYiI7CgoJd2NvdXQgPDwgYTEuYSA8PCBMIiA6ICIgPDwgYTIuYSA8PCBlbmRsOwoKCXJldHVybiAwOwp9