summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2017-02-26 21:34:11 -0500
committerMax Kellermann <max@musicpd.org>2017-03-01 19:38:41 +0100
commit9dfedbe61940c33a7830230a5da38f25fa13cffa (patch)
tree6519fcc40bf096f823356cebbaa8a64a3c166d96 /src
parent88957b4c9d9dffcbb7bb39655161965d4973197b (diff)
ReusableArray: fix build error on GCC7
GCC7 outputs the following error without this change: src/util/ReusableArray.hxx:61:35: error: no matching function for call to ‘swap(size_t&, const size_t&)’ std::swap(capacity, src.capacity); which can be resolved by just using an rvalue-reference rather than a const rvalue-reference. Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/util/ReusableArray.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/ReusableArray.hxx b/src/util/ReusableArray.hxx
index f309e8322..cb40e610a 100644
--- a/src/util/ReusableArray.hxx
+++ b/src/util/ReusableArray.hxx
@@ -56,7 +56,7 @@ public:
:buffer(std::exchange(src.buffer, nullptr)),
capacity(std::exchange(src.capacity, 0)) {}
- ReusableArray &operator=(const ReusableArray &&src) {
+ ReusableArray &operator=(ReusableArray &&src) {
std::swap(buffer, src.buffer);
std::swap(capacity, src.capacity);
return *this;