util/AllocatedArray: import std::swap
This commit is contained in:
parent
2cb36590b2
commit
7104ac963b
|
@ -92,7 +92,8 @@ public:
|
|||
}
|
||||
|
||||
AllocatedArray &operator=(AllocatedArray &&other) noexcept {
|
||||
std::swap(buffer, other.buffer);
|
||||
using std::swap;
|
||||
swap(buffer, other.buffer);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue