From fd4e52b042b5f86350968de610e4e71cba379033 Mon Sep 17 00:00:00 2001 From: Ronen Friedman Date: Mon, 20 Nov 2023 12:44:17 -0600 Subject: [PATCH] tools: modify ceph_dedup_tool to maintain Clang 15 compatibility 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 --- src/tools/ceph_dedup_tool.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/ceph_dedup_tool.cc b/src/tools/ceph_dedup_tool.cc index c67368f9318..91a991c011a 100644 --- a/src/tools/ceph_dedup_tool.cc +++ b/src/tools/ceph_dedup_tool.cc @@ -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); }