From 5fbd69640016de7c52bc946b5a4b6eec38364106 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 20 Apr 2018 08:51:26 +1000 Subject: Feature [feature-requests:#1215]. Fix forwarding reference warnings. --- src/SplitVector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SplitVector.h') diff --git a/src/SplitVector.h b/src/SplitVector.h index 16dec6e98..3fb595eef 100644 --- a/src/SplitVector.h +++ b/src/SplitVector.h @@ -130,14 +130,14 @@ public: if (position < 0) { ; } else { - body[position] = std::move(v); + body[position] = std::forward(v); } } else { PLATFORM_ASSERT(position < lengthBody); if (position >= lengthBody) { ; } else { - body[gapLength + position] = std::move(v); + body[gapLength + position] = std::forward(v); } } } -- cgit v1.2.3