From 60e87889d6438e386acf58c3967fb874af9aae82 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 5 Jan 2020 21:22:02 -0500 Subject: Added Sci::make_unique() and Sci::size() for better compatibility with the default branch. std::make_unique() is c++14 and std::size() is c++17. --- 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 e508f63da..e6f59e9dc 100644 --- a/src/SparseVector.h +++ b/src/SparseVector.h @@ -27,8 +27,8 @@ private: } public: SparseVector() : empty() { - starts = std::unique_ptr>(new Partitioning(8)); - values = std::unique_ptr>(new SplitVector()); + starts = Sci::make_unique>(8); + values = Sci::make_unique>(); values->InsertEmpty(0, 2); } // Deleted so SparseVector objects can not be copied. -- cgit v1.2.3