]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/bounded_key_counter.h
update sources to 12.2.7
[ceph.git] / ceph / src / common / bounded_key_counter.h
index e5aa52210df7e0da0a6d69ab16e5909eb863e397..0109a26ef1bcc36e69d58f83272f01d0af148bf2 100644 (file)
@@ -73,7 +73,11 @@ class BoundedKeyCounter {
   struct const_pointer_iterator : public map_type::const_iterator {
     const_pointer_iterator(typename map_type::const_iterator i)
       : map_type::const_iterator(i) {}
-    const value_type* operator*() const {
+
+    using value_type = typename map_type::const_iterator::value_type*;
+    using reference = const typename map_type::const_iterator::value_type*;
+
+    reference operator*() const {
       return &map_type::const_iterator::operator*();
     }
   };