mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Fix MSVC compile error
This commit is contained in:
parent
649baf052f
commit
0a95d52f9e
@ -68,8 +68,8 @@ class wchar_raii : public generic_raii<wchar_t*, wchar_raii_free, static_cast<wc
|
||||
}
|
||||
#if __cplusplus >= 201703L
|
||||
std::wstring_view as_view() const { return std::wstring_view(handle, sz); }
|
||||
#endif
|
||||
std::wstring as_copy() const { return std::wstring(handle, sz); }
|
||||
#endif
|
||||
};
|
||||
#if (defined(__GNUC__) && !defined(__clang__))
|
||||
#pragma GCC diagnostic pop
|
||||
|
Loading…
x
Reference in New Issue
Block a user