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/SparseVector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SparseVector.h') diff --git a/src/SparseVector.h b/src/SparseVector.h index 11a126a1a..0667e54c4 100644 --- a/src/SparseVector.h +++ b/src/SparseVector.h @@ -77,11 +77,11 @@ public: if (position == startPartition) { // Already a value at this position, so replace ClearValue(partition); - values->SetValueAt(partition, std::move(value)); + values->SetValueAt(partition, std::forward(value)); } else { // Insert a new element starts->InsertPartition(partition + 1, position); - values->Insert(partition + 1, std::move(value)); + values->Insert(partition + 1, std::forward(value)); } } } -- cgit v1.2.3