net/AllocatedSocketAddress: import std::swap
This commit is contained in:
parent
2089c99348
commit
510e6841a0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user