Fix MSVC compile error

This commit is contained in:
Kovid Goyal 2023-01-27 15:36:32 +05:30
parent 649baf052f
commit 0a95d52f9e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -68,8 +68,8 @@ class wchar_raii : public generic_raii<wchar_t*, wchar_raii_free, static_cast<wc
} }
#if __cplusplus >= 201703L #if __cplusplus >= 201703L
std::wstring_view as_view() const { return std::wstring_view(handle, sz); } std::wstring_view as_view() const { return std::wstring_view(handle, sz); }
#endif
std::wstring as_copy() const { return std::wstring(handle, sz); } std::wstring as_copy() const { return std::wstring(handle, sz); }
#endif
}; };
#if (defined(__GNUC__) && !defined(__clang__)) #if (defined(__GNUC__) && !defined(__clang__))
#pragma GCC diagnostic pop #pragma GCC diagnostic pop