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:
Diffstat (limited to 'include/llfio/v2.0/path_view.hpp')
-rw-r--r--include/llfio/v2.0/path_view.hpp12
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())
{