From d2604bc5ce73d72d59e388b4d8e205a69fc20332 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 24 Aug 2023 18:50:31 +0300 Subject: [PATCH] Fix moving util::hash_table --- libs/util/include/psemek/util/hash_table.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/util/include/psemek/util/hash_table.hpp b/libs/util/include/psemek/util/hash_table.hpp index bebfc781..a2f88323 100644 --- a/libs/util/include/psemek/util/hash_table.hpp +++ b/libs/util/include/psemek/util/hash_table.hpp @@ -119,6 +119,7 @@ namespace psemek::util : Hash(std::move(other.hash())) , Equal(std::move(other.equal())) , storage_(std::move(other.storage_)) + , size_(other.size_) { other.storage_.capacity = 0; other.size_ = 0;