fix a stupid error when constructing
This commit is contained in:
@ -570,6 +570,7 @@ class map {
|
|||||||
map() : node_count(0), tree_root(nullptr) {}
|
map() : node_count(0), tree_root(nullptr) {}
|
||||||
map(const map &other) {
|
map(const map &other) {
|
||||||
node_count = other.node_count;
|
node_count = other.node_count;
|
||||||
|
tree_root = nullptr;
|
||||||
RedBlackTreeNodeType::CopyFrom(tree_root, other.tree_root);
|
RedBlackTreeNodeType::CopyFrom(tree_root, other.tree_root);
|
||||||
}
|
}
|
||||||
map(map &&other) {
|
map(map &&other) {
|
||||||
|
Reference in New Issue
Block a user