summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/templates/rb_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/templates/rb_map.h b/core/templates/rb_map.h
index 0a33809bb2..d373713669 100644
--- a/core/templates/rb_map.h
+++ b/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();
}