From afa5d90ba3dae2d4fc2ca6e7ebb6cbd44fcfa0ca Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Mon, 7 Jun 2021 13:14:45 -0700 Subject: [PATCH] crimson/common/fixed_kv_node_layout: add reference type for do_for_each implementations Signed-off-by: Samuel Just --- src/crimson/common/fixed_kv_node_layout.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crimson/common/fixed_kv_node_layout.h b/src/crimson/common/fixed_kv_node_layout.h index 4c7cc2e76a437..75cddb3f01090 100644 --- a/src/crimson/common/fixed_kv_node_layout.h +++ b/src/crimson/common/fixed_kv_node_layout.h @@ -76,6 +76,7 @@ public: } // Work nicely with for loops without requiring a nested type. + using reference = iter_t&; iter_t &operator*() { return *this; } iter_t *operator->() { return this; } -- 2.39.5