From: Samuel Just Date: Mon, 13 Jul 2020 22:41:00 +0000 (-0700) Subject: crimson/os/seastore: add const cast() method X-Git-Tag: v16.1.0~1513^2~20 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a9173eff11567401ff4fcf5e083fc248c47fc44f;p=ceph.git crimson/os/seastore: add const cast() method Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/cached_extent.h b/src/crimson/os/seastore/cached_extent.h index 6e4bd650a758..7ab52f0fa633 100644 --- a/src/crimson/os/seastore/cached_extent.h +++ b/src/crimson/os/seastore/cached_extent.h @@ -171,6 +171,10 @@ public: TCachedExtentRef cast() { return TCachedExtentRef(static_cast(this)); } + template + TCachedExtentRef cast() const { + return TCachedExtentRef(static_cast(this)); + } /// Returns true if extent is part of an open transaction bool is_pending() const {