From 98e6a861ca9dccd0a9ce18e94a2960a93c256f67 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 May 2019 22:33:41 +0200 Subject: [PATCH] util/HugeAllocator: import std::swap() --- src/util/HugeAllocator.cxx | 2 +- src/util/HugeAllocator.hxx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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; }