From 510e6841a01ff1a43c4eac452d3cf2710032fa81 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 3 Jul 2019 22:06:40 +0200 Subject: [PATCH] net/AllocatedSocketAddress: import std::swap --- src/net/AllocatedSocketAddress.hxx | 5 +++-- 1 file 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; }