Skip to content

Commit 101f477

Browse files
assign()
1 parent 5048b87 commit 101f477

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libs/openFrameworks/utils/ofFilesystem.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ class path {
138138
path& replace_filename(const path & ext = std::filesystem::path()) { path_.replace_filename(ext);
139139
return *this;
140140
}
141+
142+
template <typename T>
143+
path& assign(T&& p) {
144+
path_.assign(std::move(std::forward<T>(p)));
145+
return *this;
146+
}
141147
path& operator/=(path&& p) noexcept {
142148
path_ /= std::move(p.path_);
143149
return *this;

0 commit comments

Comments
 (0)