Commit 6ec335dc authored by Max Kellermann's avatar Max Kellermann

net/UniqueSocketDescriptor: import std::swap()

parent d5d6746d
...@@ -68,7 +68,8 @@ public: ...@@ -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;
} }
......
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