string std to wstring

#include <locale>
#include <codecvt>
#include <string>

std::string str;
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
std::wstring wstr(converter.from_bytes(str));
JulesG10