Make compatible with const-only string.data() spec

This commit is contained in:
Howard Hinnant 2019-01-31 19:23:17 -05:00
parent 61c3d35634
commit f1326968af

View File

@ -215,7 +215,7 @@ get_known_folder(const GUID& folderid)
if (required != 0 && required != -1)
{
folder.resize(required);
std::wcsrtombs(folder.data(), &fptr, folder.size(), &state);
std::wcsrtombs(&folder[0], &fptr, folder.size(), &state);
}
}
return folder;