aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/SparseVector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/SparseVector.h')
-rw-r--r--src/SparseVector.h4
1 files changed, 2 insertions, 2 deletions
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<ParamType>(value));
} else {
// Insert a new element
starts->InsertPartition(partition + 1, position);
- values->Insert(partition + 1, std::move(value));
+ values->Insert(partition + 1, std::forward<ParamType>(value));
}
}
}