diff options
Diffstat (limited to 'libcxx/src/experimental/filesystem/path.cpp')
| -rw-r--r-- | libcxx/src/experimental/filesystem/path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/experimental/filesystem/path.cpp b/libcxx/src/experimental/filesystem/path.cpp index 64da30217fb..bdd0a68c97e 100644 --- a/libcxx/src/experimental/filesystem/path.cpp +++ b/libcxx/src/experimental/filesystem/path.cpp @@ -283,7 +283,7 @@ string_view_t path::__root_path_raw() const if (!parser::good(e)) e = parser::root_name_end(__pn_); if (parser::good(e)) - return string_view_t{__pn_}.substr(0, e + 1); + return string_view_t(__pn_).substr(0, e + 1); return {}; } |

