diff options
author | Max Kellermann <max@musicpd.org> | 2019-07-03 22:06:40 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-07-03 22:06:40 +0200 |
commit | 510e6841a01ff1a43c4eac452d3cf2710032fa81 (patch) | |
tree | 63b9c9b69bbde9428f83821143d51b6ed5226689 /src | |
parent | 2089c99348aa3766b355191d56c2b5e68338bd24 (diff) |
net/AllocatedSocketAddress: import std::swap
Diffstat (limited to 'src')
-rw-r--r-- | src/net/AllocatedSocketAddress.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/AllocatedSocketAddress.hxx b/src/net/AllocatedSocketAddress.hxx index f662f89ad..f8462f835 100644 --- a/src/net/AllocatedSocketAddress.hxx +++ b/src/net/AllocatedSocketAddress.hxx @@ -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; } |