diff options
-rw-r--r-- | src/fs/AllocatedPath.hxx | 1 | ||||
-rw-r--r-- | src/fs/Traits.hxx | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index 09e805dfe..cdd53b327 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -37,6 +37,7 @@ class AllocatedPath { using Traits = PathTraitsFS; using string = Traits::string; + using string_view = Traits::string_view; using value_type = Traits::value_type; using pointer = Traits::pointer; using const_pointer = Traits::const_pointer; diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx index a6a99634e..72cdc0ba2 100644 --- a/src/fs/Traits.hxx +++ b/src/fs/Traits.hxx @@ -44,8 +44,10 @@ struct PathTraitsFS { #ifdef _WIN32 using string = std::wstring; + using string_view = std::wstring_view; #else using string = std::string; + using string_view = std::string_view; #endif using char_traits = string::traits_type; using value_type = char_traits::char_type; @@ -177,6 +179,7 @@ struct PathTraitsFS { */ struct PathTraitsUTF8 { using string = std::string; + using string_view = std::string_view; using char_traits = string::traits_type; using value_type = char_traits::char_type; using pointer = value_type *; |