From d9a4e803d7b5e9fde3009052653ec3fdf77c5c09 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 19 Apr 2017 17:44:09 +1000 Subject: Use =delete for unwanted functions. --- 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 20fa56cca..c81170c4b 100644 --- a/src/SparseVector.h +++ b/src/SparseVector.h @@ -19,8 +19,8 @@ class SparseVector { private: Partitioning *starts; SplitVector *values; - // Private so SparseVector objects can not be copied - SparseVector(const SparseVector &); + // Deleted so SparseVector objects can not be copied + SparseVector(const SparseVector &) = delete; void ClearValue(int partition) { values->SetValueAt(partition, T()); } -- cgit v1.2.3