net/AllocatedSocketAddress: import std::swap
This commit is contained in:
parent
2089c99348
commit
510e6841a0
@ -79,8 +79,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
AllocatedSocketAddress &operator=(AllocatedSocketAddress &&src) noexcept {
|
AllocatedSocketAddress &operator=(AllocatedSocketAddress &&src) noexcept {
|
||||||
std::swap(address, src.address);
|
using std::swap;
|
||||||
std::swap(size, src.size);
|
swap(address, src.address);
|
||||||
|
swap(size, src.size);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user