]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
tools: modify ceph_dedup_tool to maintain Clang 15 compatibility
authorRonen Friedman <rfriedma@redhat.com>
Mon, 20 Nov 2023 18:44:17 +0000 (12:44 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Mon, 20 Nov 2023 18:44:17 +0000 (12:44 -0600)
Adding 'typename' in two instances, where version 15 of Clang
still requires it. P0634R3, which made those 'typename' redundant,
is only supported starting Clang 16.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/tools/ceph_dedup_tool.cc

index c67368f9318c7d41a3085c044ee80d24df28e4a5..91a991c011a3688f409538ae15def610bf0984da 100644 (file)
@@ -581,9 +581,9 @@ public:
       } entry_into = NONE;
 
       /// Valid iterator into map for UNDER|OVER, default for NONE
-      map_t::iterator iter;
+      typename map_t::iterator iter;
 
-      entry_t(entry_into_t entry_into, map_t::iterator iter) :
+      entry_t(entry_into_t entry_into, typename map_t::iterator iter) :
        entry_into(entry_into), iter(iter) {
        ceph_assert(entry_into != NONE);
       }