util/AllocatedArray: import std::swap

This commit is contained in:
Max Kellermann 2018-12-28 17:18:41 +01:00
parent 2cb36590b2
commit 7104ac963b
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ public:
}
AllocatedArray &operator=(AllocatedArray &&other) noexcept {
std::swap(buffer, other.buffer);
using std::swap;
swap(buffer, other.buffer);
return *this;
}