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/Partitioning.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/Partitioning.h') diff --git a/src/Partitioning.h b/src/Partitioning.h index 2836b66dd..17bc1998e 100644 --- a/src/Partitioning.h +++ b/src/Partitioning.h @@ -78,15 +78,6 @@ public: body.Insert(1, 0); // This is the end of the first partition and will be the start of the second } - // Deleted so Partitioning objects can not be copied. - Partitioning(const Partitioning &) = delete; - Partitioning(Partitioning &&) = delete; - Partitioning &operator=(const Partitioning &) = delete; - Partitioning &operator=(Partitioning &&) = default; - - ~Partitioning() { - } - T Partitions() const noexcept { return static_cast(body.Length())-1; } -- cgit v1.2.3