]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/common/fixed_kv_node_layout: add reference type for do_for_each implementations
authorSamuel Just <sjust@redhat.com>
Mon, 7 Jun 2021 20:14:45 +0000 (13:14 -0700)
committerSamuel Just <sjust@redhat.com>
Wed, 23 Jun 2021 18:23:34 +0000 (18:23 +0000)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/common/fixed_kv_node_layout.h

index 4c7cc2e76a4373ba870b4da190880b1d21c63fad..75cddb3f01090200c09645c6317903413466752a 100644 (file)
@@ -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; }