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/SplitVector.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/SplitVector.h') diff --git a/src/SplitVector.h b/src/SplitVector.h index 6c5514a22..19b854f5a 100644 --- a/src/SplitVector.h +++ b/src/SplitVector.h @@ -74,15 +74,6 @@ public: SplitVector(size_t growSize_=8) : empty(), lengthBody(0), part1Length(0), gapLength(0), growSize(growSize_) { } - // Deleted so SplitVector objects can not be copied. - SplitVector(const SplitVector &) = delete; - SplitVector(SplitVector &&) = delete; - SplitVector &operator=(const SplitVector &) = delete; - SplitVector &operator=(SplitVector &&) = default; - - ~SplitVector() { - } - size_t GetGrowSize() const noexcept { return growSize; } -- cgit v1.2.3