File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class path : public std::filesystem::path
3535 // Allow path objects arguments for compatibility.
3636 path (std::filesystem::path path) : std::filesystem::path::path(std::move(path)) {}
3737 path& operator =(std::filesystem::path path) { std::filesystem::path::operator =(std::move (path)); return *this ; }
38- path& operator /=(std::filesystem::path path) { std::filesystem::path::operator /=(path); return *this ; }
38+ path& operator /=(const std::filesystem::path& path) { std::filesystem::path::operator /=(path); return *this ; }
3939
4040 // Allow literal string arguments, which are safe as long as the literals are ASCII.
4141 path (const char * c) : std::filesystem::path(c) {}
@@ -97,9 +97,9 @@ static inline auto quoted(const std::string& s)
9797}
9898
9999// Allow safe path append operations.
100- static inline path operator /(path p1, path p2)
100+ static inline path operator /(path p1, const path& p2)
101101{
102- p1 /= std::move (p2) ;
102+ p1 /= p2 ;
103103 return p1;
104104}
105105static inline path operator /(path p1, const char * p2)
You can’t perform that action at this time.
0 commit comments