From 171899690407c0c81e0444478cb7ef64a9291c11 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 1 Feb 2018 09:07:21 +1100 Subject: Templatize Partitioning so it can hold different types. --- 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 f42194f26..0f9f4ad1c 100644 --- a/src/SparseVector.h +++ b/src/SparseVector.h @@ -15,7 +15,7 @@ namespace Scintilla { template class SparseVector { private: - std::unique_ptr starts; + std::unique_ptr> starts; std::unique_ptr> values; T empty; // Deleted so SparseVector objects can not be copied. @@ -26,7 +26,7 @@ private: } public: SparseVector() : empty() { - starts.reset(new Partitioning(8)); + starts.reset(new Partitioning(8)); values.reset(new SplitVector()); values->InsertEmpty(0, 2); } -- cgit v1.2.3