net/AllocatedSocketAddress: import std::swap

This commit is contained in:
Max Kellermann 2019-07-03 22:06:40 +02:00
parent 2089c99348
commit 510e6841a0

View File

@ -79,8 +79,9 @@ public:
}
AllocatedSocketAddress &operator=(AllocatedSocketAddress &&src) noexcept {
std::swap(address, src.address);
std::swap(size, src.size);
using std::swap;
swap(address, src.address);
swap(size, src.size);
return *this;
}