mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-14 01:37:57 +08:00
Make compatible with const-only string.data() spec
This commit is contained in:
parent
61c3d35634
commit
f1326968af
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user