util/HugeAllocator: import std::swap()
This commit is contained in:
parent
2c6dd04d19
commit
98e6a861ca
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user