Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-01-29 21:19:23 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-01-29 21:19:23 +0300
commit7db82bbda95eabc1a90c029fabc9e435237df5a4 (patch)
tree9b71071fb3b9c169ea5bfb58de1f05c40d3cea12
parentfa2e4c095d5884dfc8185e31005606443edeae69 (diff)
Fix last commit on VS2017.
-rw-r--r--include/llfio/v2.0/detail/impl/windows/fs_handle.ipp6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llfio/v2.0/detail/impl/windows/fs_handle.ipp b/include/llfio/v2.0/detail/impl/windows/fs_handle.ipp
index 58ef72ed..9365a363 100644
--- a/include/llfio/v2.0/detail/impl/windows/fs_handle.ipp
+++ b/include/llfio/v2.0/detail/impl/windows/fs_handle.ipp
@@ -522,7 +522,11 @@ LLFIO_HEADERS_ONLY_FUNC_SPEC result<filesystem::path> to_win32_path(const fs_han
if(!needsExtendedPrefix)
{
// Are any segments of the filename a reserved name?
- static constexpr const wstring_view reserved_names[] = {
+ static
+#if(_HAS_CXX17 || __cplusplus >= 201700) && (!defined(__GLIBCXX__) || __GLIBCXX__ > 20170519) // libstdc++'s string_view is missing constexpr
+ constexpr
+#endif
+ const wstring_view reserved_names[] = {
L"\\CON\\", L"\\PRN\\", L"\\AUX\\", L"\\NUL\\", L"\\COM1\\", L"\\COM2\\", L"\\COM3\\", L"\\COM4\\", L"\\COM5\\", L"\\COM6\\", L"\\COM7\\",
L"\\COM8\\", L"\\COM9\\", L"\\LPT1\\", L"\\LPT2\\", L"\\LPT3\\", L"\\LPT4\\", L"\\LPT5\\", L"\\LPT6\\", L"\\LPT7\\", L"\\LPT8\\", L"\\LPT9\\"};
wstring_view _buffer_(buffer);