system/UniqueFileDescriptor: import std::swap

This commit is contained in:
Max Kellermann 2019-02-19 12:36:54 +01:00
parent db144a43ad
commit 56bded07b1
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ public:
}
UniqueFileDescriptor &operator=(UniqueFileDescriptor &&other) noexcept {
std::swap(fd, other.fd);
using std::swap;
swap(fd, other.fd);
return *this;
}