diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-10-09 20:02:45 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-10-09 20:02:45 +0300 |
commit | f7fd2da19f425f4fef4ade76bc4c81223d343536 (patch) | |
tree | e3882a5b017b773897c51b2ab000ddf7bfc78534 | |
parent | c6ed09566e600d9fd54e871b7f407f80d2573062 (diff) |
Remove use of .u8string() everywhere, as it is incompatible on C++ 20.
-rw-r--r-- | include/llfio/v2.0/detail/impl/path_discovery.ipp | 4 | ||||
-rw-r--r-- | include/llfio/v2.0/handle.hpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/llfio/v2.0/detail/impl/path_discovery.ipp b/include/llfio/v2.0/detail/impl/path_discovery.ipp index 318bad07..fed19c71 100644 --- a/include/llfio/v2.0/detail/impl/path_discovery.ipp +++ b/include/llfio/v2.0/detail/impl/path_discovery.ipp @@ -159,7 +159,7 @@ namespace path_discovery { #if LLFIO_LOGGING_LEVEL >= 3 std::string msg("path_discovery::verified_temporary_directories() failed to create a file in "); - msg.append(ps._all[n].path.u8string()); + msg.append(ps._all[n].path.string()); msg.append(" due to "); msg.append(_fh.error().message().c_str()); LLFIO_LOG_WARN(nullptr, msg.c_str()); @@ -185,7 +185,7 @@ namespace path_discovery { #if LLFIO_LOGGING_LEVEL >= 3 std::string msg("path_discovery::verified_temporary_directories() failed to statfs the temp directory "); - msg.append(ps._all[n].path.u8string()); + msg.append(ps._all[n].path.string()); msg.append(" due to "); msg.append(statfsres.error().message().c_str()); LLFIO_LOG_WARN(nullptr, msg.c_str()); diff --git a/include/llfio/v2.0/handle.hpp b/include/llfio/v2.0/handle.hpp index a99887b0..27c7a613 100644 --- a/include/llfio/v2.0/handle.hpp +++ b/include/llfio/v2.0/handle.hpp @@ -341,7 +341,7 @@ inline std::ostream &operator<<(std::ostream &s, const handle &v) if(v.is_valid()) { auto _currentpath = v.current_path(); - std::string currentpath = !_currentpath ? std::string(_currentpath.error().message().c_str()) : _currentpath.value().u8string(); + std::string currentpath = !_currentpath ? std::string(_currentpath.error().message().c_str()) : _currentpath.value().string(); return s << "llfio::handle(" << v._v._init << ", " << currentpath << ")"; } return s << "llfio::handle(closed)"; @@ -470,7 +470,7 @@ namespace detail tls.reentering_self = false; if(currentpath_) { - auto currentpath = currentpath_.value().u8string(); + auto currentpath = currentpath_.value().string(); dest._thread_id = tls.this_thread_id; #ifdef _MSC_VER #pragma warning(push) |