From 7104ac963b7506cd1442d7f9060df1793b2ba656 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 28 Dec 2018 17:18:41 +0100 Subject: [PATCH] util/AllocatedArray: import std::swap --- src/util/AllocatedArray.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/AllocatedArray.hxx b/src/util/AllocatedArray.hxx index f5bb0fcea..cc79cb219 100644 --- a/src/util/AllocatedArray.hxx +++ b/src/util/AllocatedArray.hxx @@ -92,7 +92,8 @@ public: } AllocatedArray &operator=(AllocatedArray &&other) noexcept { - std::swap(buffer, other.buffer); + using std::swap; + swap(buffer, other.buffer); return *this; }