From 5f2a3376c8425d48a1c920316acea2d18cfc3ab0 Mon Sep 17 00:00:00 2001 From: ZhuangYumin Date: Tue, 26 Mar 2024 13:18:16 +0000 Subject: [PATCH] fix a stupid error when constructing --- map/src/map.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/map/src/map.hpp b/map/src/map.hpp index 32a4a52..9a39ea1 100644 --- a/map/src/map.hpp +++ b/map/src/map.hpp @@ -570,6 +570,7 @@ class map { map() : node_count(0), tree_root(nullptr) {} map(const map &other) { node_count = other.node_count; + tree_root = nullptr; RedBlackTreeNodeType::CopyFrom(tree_root, other.tree_root); } map(map &&other) {