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 | |
parent | 208256a5c5e75de2ecc3e4523f6d75c2bfb2928e (diff) |
Hopefully fix build breakage on VS2017.
-rw-r--r-- | include/llfio/revision.hpp | 6 | ||||
-rw-r--r-- | include/llfio/v2.0/detail/impl/posix/statfs.ipp | 2 | ||||
-rw-r--r-- | include/llfio/v2.0/path_view.hpp | 12 |
3 files changed, 9 insertions, 11 deletions
diff --git a/include/llfio/revision.hpp b/include/llfio/revision.hpp index bde5fff6..8762d829 100644 --- a/include/llfio/revision.hpp +++ b/include/llfio/revision.hpp @@ -1,4 +1,4 @@ // Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time -#define LLFIO_PREVIOUS_COMMIT_REF 17caecec978dff884dee67085b5dd7d9d4b80f75 -#define LLFIO_PREVIOUS_COMMIT_DATE "2020-10-16 09:15:00 +00:00" -#define LLFIO_PREVIOUS_COMMIT_UNIQUE 17caecec +#define LLFIO_PREVIOUS_COMMIT_REF 208256a5c5e75de2ecc3e4523f6d75c2bfb2928e +#define LLFIO_PREVIOUS_COMMIT_DATE "2020-10-29 15:59:16 +00:00" +#define LLFIO_PREVIOUS_COMMIT_UNIQUE 208256a5 diff --git a/include/llfio/v2.0/detail/impl/posix/statfs.ipp b/include/llfio/v2.0/detail/impl/posix/statfs.ipp index 94f77387..b3e819b0 100644 --- a/include/llfio/v2.0/detail/impl/posix/statfs.ipp +++ b/include/llfio/v2.0/detail/impl/posix/statfs.ipp @@ -31,8 +31,6 @@ Distributed under the Boost Software License, Version 1.0. #include <sys/statfs.h> #endif -#include <iostream> - LLFIO_V2_NAMESPACE_BEGIN LLFIO_HEADERS_ONLY_MEMFUNC_SPEC result<size_t> statfs_t::fill(const handle &h, statfs_t::want wanted) noexcept 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()) { |