Ver código fonte

Fix RBMap's, iterator-based, remove()

Pedro J. Estébanez 1 ano atrás
pai
commit
5c81236047
1 arquivos alterados com 2 adições e 0 exclusões
  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;
 	typedef KeyValue<K, V> ValueType;
 
 
 	struct Iterator {
 	struct Iterator {
+		friend class RBMap<K, V, C, A>;
+
 		_FORCE_INLINE_ KeyValue<K, V> &operator*() const {
 		_FORCE_INLINE_ KeyValue<K, V> &operator*() const {
 			return E->key_value();
 			return E->key_value();
 		}
 		}