summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-07-03 22:06:40 +0200
committerMax Kellermann <max@musicpd.org>2019-07-03 22:06:40 +0200
commit510e6841a01ff1a43c4eac452d3cf2710032fa81 (patch)
tree63b9c9b69bbde9428f83821143d51b6ed5226689 /src/net
parent2089c99348aa3766b355191d56c2b5e68338bd24 (diff)
net/AllocatedSocketAddress: import std::swap
Diffstat (limited to 'src/net')
-rw-r--r--src/net/AllocatedSocketAddress.hxx5
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;
}