From f1326968afc15c555ab8cafe8ec61d67d9048d5e Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 31 Jan 2019 19:23:17 -0500 Subject: [PATCH] Make compatible with const-only string.data() spec --- src/tz.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tz.cpp b/src/tz.cpp index 5e538da..ac96512 100644 --- a/src/tz.cpp +++ b/src/tz.cpp @@ -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;