From e030b1d56785405cb35531758d603be88af9b487 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 29 Jul 2022 11:16:28 +1000 Subject: Apply rule-of-zero to delete standard methods where possible as handled by contained types. This allows flexibility as most lower-level data types can be moved and SplitVector and Partitioning of non-move-only types may be copied. CellBuffer still needs destructor due to incomplete type so retains all standard operations. --- src/SparseVector.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/SparseVector.h') diff --git a/src/SparseVector.h b/src/SparseVector.h index cc3fe1448..f8c35fdc5 100644 --- a/src/SparseVector.h +++ b/src/SparseVector.h @@ -31,12 +31,6 @@ public: values = SplitVector(); values.InsertEmpty(0, 2); } - // Deleted so SparseVector objects can not be copied. - SparseVector(const SparseVector &) = delete; - SparseVector(SparseVector &&) = delete; - void operator=(const SparseVector &) = delete; - void operator=(SparseVector &&) = delete; - ~SparseVector() noexcept = default; Sci::Position Length() const noexcept { return starts.Length(); } -- cgit v1.2.3