Commit 7104ac96 authored by Max Kellermann's avatar Max Kellermann

util/AllocatedArray: import std::swap

parent 2cb36590
...@@ -92,7 +92,8 @@ public: ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment