From 0c741cd0bd77be8e252c8edea4628db8e8edffbb Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 2 Jul 2021 11:32:15 +0800 Subject: [PATCH] crimson/os/seastore: read_set_t<> should be an alias of set<> we don't extend it by inheriting from this class. what we need is to have a convenient template alias here. Signed-off-by: Kefu Chai --- src/crimson/os/seastore/cached_extent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crimson/os/seastore/cached_extent.h b/src/crimson/os/seastore/cached_extent.h index a5dde1a869e8..c14ec2a1b3bf 100644 --- a/src/crimson/os/seastore/cached_extent.h +++ b/src/crimson/os/seastore/cached_extent.h @@ -69,9 +69,9 @@ public: ~read_set_item_t(); }; template -struct read_set_t : public std::set< +using read_set_t = std::set< read_set_item_t, - typename read_set_item_t::cmp_t> {}; + typename read_set_item_t::cmp_t>; class ExtentIndex; class CachedExtent : public boost::intrusive_ref_counter< -- 2.47.3