Skip to content

Commit 2c35f2f

Browse files
swap()
1 parent e8145c6 commit 2c35f2f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libs/openFrameworks/utils/ofFilesystem.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ class path {
121121
template <typename... Args>
122122
auto compare(Args&&... args) const { return path_.compare(std::forward<Args>(args)...); }
123123

124+
void swap(path & other) noexcept { path_.swap(other.path_); }
125+
126+
124127
// MARK: path transformation (return *this)
125128
path& replace_extension(const path & ext = std::filesystem::path()) {
126129
path_.replace_extension(ext);

0 commit comments

Comments
 (0)