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
35
35
// Allow path objects arguments for compatibility.
36
36
path (std::filesystem::path path) : std::filesystem::path::path(std::move(path)) {}
37
37
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 ; }
39
39
40
40
// Allow literal string arguments, which are safe as long as the literals are ASCII.
41
41
path (const char * c) : std::filesystem::path(c) {}
@@ -97,9 +97,9 @@ static inline auto quoted(const std::string& s)
97
97
}
98
98
99
99
// Allow safe path append operations.
100
- static inline path operator /(path p1, path p2)
100
+ static inline path operator /(path p1, const path& p2)
101
101
{
102
- p1 /= std::move (p2) ;
102
+ p1 /= p2 ;
103
103
return p1;
104
104
}
105
105
static inline path operator /(path p1, const char * p2)
You can’t perform that action at this time.
0 commit comments