diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index a8b6f8a..b051c25 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -2511,7 +2511,7 @@ GHC_INLINE path path::parent_path() const } else { path pp; - for (const string_type& s : input_iterator_range(begin(), --end())) { + for (string_type s : input_iterator_range(begin(), --end())) { if (s == "/") { // don't use append to join a path- pp += s; @@ -2622,7 +2622,7 @@ GHC_INLINE path path::lexically_normal() const { path dest; bool lastDotDot = false; - for (const string_type& s : *this) { + for (string_type s : *this) { if (s == ".") { dest /= ""; continue; @@ -3379,7 +3379,7 @@ GHC_INLINE bool create_directories(const path& p, std::error_code& ec) noexcept { path current; ec.clear(); - for (const path::string_type& part : p) { + for (path::string_type part : p) { current /= part; if (current != p.root_name() && current != p.root_path()) { std::error_code tec;