util/AllocatedArray: import std::swap

This commit is contained in:
Max Kellermann 2018-12-28 17:18:41 +01:00
parent 2cb36590b2
commit 7104ac963b

View File

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