From 0ac8d265785f0bae792f078bbbd8853a5ec2c8b5 Mon Sep 17 00:00:00 2001 From: cat Date: Sat, 31 Jan 2026 14:14:57 +0200 Subject: [PATCH] Allow moving for DualKeyMap --- headers/Containers/DualkeyMap.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/headers/Containers/DualkeyMap.hpp b/headers/Containers/DualkeyMap.hpp index 71fd396..e7c8390 100644 --- a/headers/Containers/DualkeyMap.hpp +++ b/headers/Containers/DualkeyMap.hpp @@ -206,12 +206,10 @@ public: return hashList.size() - graveyard.size(); } - // No copying, No moving. Moving may be valid in the future. - // However as of now it is not a wise way to use this map. + // No copying due to the container expected to be the sole + // owner of the data DualkeyMap(const DualkeyMap &) = delete; - DualkeyMap(DualkeyMap &&) = delete; DualkeyMap &operator=(const DualkeyMap &) = delete; - DualkeyMap &operator=(DualkeyMap &&) = delete; private: struct DualkeyHash {