Browse Source

Merge pull request #82797 from RandomShaper/fix_rbmap

Fix `RBMap`'s, iterator-based, `remove()`
Rémi Verschelde 1 năm trước cách đây
mục cha
commit
3bc1c9b5e0
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      core/templates/rb_map.h

+ 2 - 0
core/templates/rb_map.h

@@ -96,6 +96,8 @@ public:
 	typedef KeyValue<K, V> ValueType;
 
 	struct Iterator {
+		friend class RBMap<K, V, C, A>;
+
 		_FORCE_INLINE_ KeyValue<K, V> &operator*() const {
 			return E->key_value();
 		}