diff options
author | Neil <nyamatongwe@gmail.com> | 2018-02-01 09:07:21 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-02-01 09:07:21 +1100 |
commit | 171899690407c0c81e0444478cb7ef64a9291c11 (patch) | |
tree | 194ce6b75d2b20d608d3b6427891f89715785857 /src/SparseVector.h | |
parent | 45476f7be057d95d1157485d27c27ea388f25f04 (diff) | |
download | scintilla-mirror-171899690407c0c81e0444478cb7ef64a9291c11.tar.gz |
Templatize Partitioning so it can hold different types.
Diffstat (limited to 'src/SparseVector.h')
-rw-r--r-- | src/SparseVector.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <typename T> class SparseVector { private: - std::unique_ptr<Partitioning> starts; + std::unique_ptr<Partitioning<int>> starts; std::unique_ptr<SplitVector<T>> 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<int>(8)); values.reset(new SplitVector<T>()); values->InsertEmpty(0, 2); } |