From: Kefu Chai Date: Fri, 2 Jul 2021 03:32:15 +0000 (+0800) Subject: crimson/os/seastore: read_set_t<> should be an alias of set<> X-Git-Tag: v17.1.0~1488^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0c741cd0bd77be8e252c8edea4628db8e8edffbb;p=ceph.git 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 --- 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<