net/UniqueSocketDescriptor: import std::swap()

This commit is contained in:
Max Kellermann 2019-08-26 20:37:47 +02:00
parent d5d6746ddf
commit 6ec335dcd5

View File

@ -68,7 +68,8 @@ public:
} }
UniqueSocketDescriptor &operator=(UniqueSocketDescriptor &&src) { UniqueSocketDescriptor &operator=(UniqueSocketDescriptor &&src) {
std::swap(fd, src.fd); using std::swap;
swap(fd, src.fd);
return *this; return *this;
} }