diff --git a/src/util/HugeAllocator.cxx b/src/util/HugeAllocator.cxx index 99afe23f7..df6f106b1 100644 --- a/src/util/HugeAllocator.cxx +++ b/src/util/HugeAllocator.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2017 Max Kellermann + * Copyright 2013-2019 Max Kellermann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/src/util/HugeAllocator.hxx b/src/util/HugeAllocator.hxx index f7891316f..6ae68f78e 100644 --- a/src/util/HugeAllocator.hxx +++ b/src/util/HugeAllocator.hxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2017 Max Kellermann + * Copyright 2013-2019 Max Kellermann * * 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; }