Commit 56bded07 authored by Max Kellermann's avatar Max Kellermann

system/UniqueFileDescriptor: import std::swap

parent db144a43
...@@ -60,7 +60,8 @@ public: ...@@ -60,7 +60,8 @@ public:
} }
UniqueFileDescriptor &operator=(UniqueFileDescriptor &&other) noexcept { UniqueFileDescriptor &operator=(UniqueFileDescriptor &&other) noexcept {
std::swap(fd, other.fd); using std::swap;
swap(fd, other.fd);
return *this; return *this;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment