diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-10-29 19:00:56 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2020-10-29 19:00:56 +0300 |
commit | a080f06221b10a34d32c284d62a996c7e0bdb606 (patch) | |
tree | 9f0769d1860291d71afd97126d2dc8f8c6a7409b /include/llfio/v2.0/path_view.hpp | |
parent | 208256a5c5e75de2ecc3e4523f6d75c2bfb2928e (diff) |
Hopefully fix build breakage on VS2017.
Diffstat (limited to 'include/llfio/v2.0/path_view.hpp')
-rw-r--r-- | include/llfio/v2.0/path_view.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llfio/v2.0/path_view.hpp b/include/llfio/v2.0/path_view.hpp index 48bd710b..1999e613 100644 --- a/include/llfio/v2.0/path_view.hpp +++ b/include/llfio/v2.0/path_view.hpp @@ -1620,7 +1620,7 @@ public: { return path_view(); } - return this->_invoke([sep_idx](auto v) { return path_view(v.data(), sep_idx, not_zero_terminated); }); + return this->_invoke([&](auto v) { return path_view(v.data(), sep_idx, not_zero_terminated); }); } //! Returns a view of the root name part of this view e.g. C: LLFIO_PATH_VIEW_CONSTEXPR path_view root_name() const noexcept @@ -1630,7 +1630,7 @@ public: { return path_view(); } - return this->_invoke([sep_idx](const auto &v) { return path_view(v.data(), sep_idx, not_zero_terminated); }); + return this->_invoke([&](const auto &v) { return path_view(v.data(), sep_idx, not_zero_terminated); }); } //! Returns a view of the root directory, if there is one e.g. / LLFIO_PATH_VIEW_CONSTEXPR path_view root_directory() const noexcept @@ -1640,7 +1640,7 @@ public: { return path_view(); } - return this->_invoke([sep_idx](const auto &v) { + return this->_invoke([&](const auto &v) { #ifdef _WIN32 auto colon_idx = v.find(':'); if(colon_idx < sep_idx) @@ -1664,7 +1664,7 @@ public: return path_view(); } #ifdef _WIN32 - return this->_invoke([this, sep_idx](const auto &v) mutable { + return this->_invoke([&](const auto &v) mutable { // Special case \\.\ and \\?\ to match filesystem::path if(is_ntpath() || (v.size() >= 4 && sep_idx == 0 && v[1] == '\\' && (v[2] == '.' || v[2] == '?') && v[3] == '\\')) { @@ -1705,7 +1705,7 @@ public: return *this; } #ifdef _WIN32 - return this->_invoke([this, sep_idx](const auto &v) mutable { + return this->_invoke([&](const auto &v) mutable { // Special case \\.\ and \\?\ to match filesystem::path if(is_ntpath() || (v.size() >= 4 && sep_idx == 0 && v[1] == '\\' && (v[2] == '.' || v[2] == '?') && v[3] == '\\')) { @@ -1746,7 +1746,7 @@ public: return path_view(); } #ifdef _WIN32 - return this->_invoke([this, sep_idx](const auto &v) { + return this->_invoke([&](const auto &v) { // UNC paths return a trailing slash if the parent path is the server name if(is_uncpath()) { |