We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
performance-*move*
1 parent ee63d4b commit f29610bCopy full SHA for f29610b
src/fs.h
@@ -34,7 +34,7 @@ class path : public std::filesystem::path
34
// Allow path objects arguments for compatibility.
35
path(std::filesystem::path path) : std::filesystem::path::path(std::move(path)) {}
36
path& operator=(std::filesystem::path path) { std::filesystem::path::operator=(std::move(path)); return *this; }
37
- path& operator/=(std::filesystem::path path) { std::filesystem::path::operator/=(std::move(path)); return *this; }
+ path& operator/=(std::filesystem::path path) { std::filesystem::path::operator/=(path); return *this; }
38
39
// Allow literal string arguments, which are safe as long as the literals are ASCII.
40
path(const char* c) : std::filesystem::path(c) {}
0 commit comments