Commit 98e6a861 authored by Max Kellermann's avatar Max Kellermann

util/HugeAllocator: import std::swap()

parent 2c6dd04d
/*
* Copyright (C) 2013-2017 Max Kellermann <max.kellermann@gmail.com>
* Copyright 2013-2019 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
......
/*
* Copyright (C) 2013-2017 Max Kellermann <max.kellermann@gmail.com>
* Copyright 2013-2019 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
......@@ -164,7 +164,8 @@ public:
}
HugeArray &operator=(HugeArray &&other) noexcept {
std::swap(buffer, other.buffer);
using std::swap;
swap(buffer, other.buffer);
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