From 958bcd786273439653d9f5557f50b5c7f4181aad Mon Sep 17 00:00:00 2001 From: Raghav Narang Date: Sat, 5 Aug 2023 22:35:39 +0530 Subject: [PATCH] [fix] delete copy and move assignment operators for cluster --- include/dpp/cluster.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h index 67cc3b8319..fcad4426be 100644 --- a/include/dpp/cluster.h +++ b/include/dpp/cluster.h @@ -232,6 +232,16 @@ class DPP_EXPORT cluster { */ cluster(const cluster&&) = delete; + /** + * @brief dpp::cluster is non-copyable + */ + cluster& operator=(const cluster&) = delete; + + /** + * @brief dpp::cluster is non-moveable + */ + cluster& operator=(const cluster&&) = delete; + /** * @brief Destroy the cluster object */