// std::string -> std::wstringstd::string s("string");std::wstring ws;ws.assign(s.begin(), s.end());// std::wstring -> std::stringstd::wstring ws(L"wstring");std::string s;s.assign(ws.begin(), ws.end());