From 57c560312215683c8fe706220ecab3edbda5116b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 16 Aug 2019 09:55:49 +0200 Subject: [PATCH] util/ForeignFifoBuffer: import std::swap() --- src/util/ForeignFifoBuffer.hxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/util/ForeignFifoBuffer.hxx b/src/util/ForeignFifoBuffer.hxx index 46779dbea..ba09db570 100644 --- a/src/util/ForeignFifoBuffer.hxx +++ b/src/util/ForeignFifoBuffer.hxx @@ -83,10 +83,11 @@ public: } void Swap(ForeignFifoBuffer &other) noexcept { - std::swap(head, other.head); - std::swap(tail, other.tail); - std::swap(capacity, other.capacity); - std::swap(data, other.data); + using std::swap; + swap(head, other.head); + swap(tail, other.tail); + swap(capacity, other.capacity); + swap(data, other.data); } constexpr bool IsNull() const noexcept {