From: Giacomo Gabrielli Date: Mon, 22 Oct 2018 16:21:45 +0000 (+0100) Subject: base: Add type alias for raw pointer in RefCountingPtr X-Git-Tag: v19.0.0.0~1345 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22ce855108cb8a1ebadbd28448b623c470f86d5c;p=gem5.git base: Add type alias for raw pointer in RefCountingPtr Change-Id: Ied2204566a8fc5c34fb4702301051b8e5ab84ffe Signed-off-by: Giacomo Gabrielli Reviewed-on: https://gem5-review.googlesource.com/c/13717 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- diff --git a/src/base/refcnt.hh b/src/base/refcnt.hh index f2821231d..197e41832 100644 --- a/src/base/refcnt.hh +++ b/src/base/refcnt.hh @@ -119,6 +119,9 @@ class RefCounted template class RefCountingPtr { + public: + using PtrType = T*; + protected: /** Convenience aliases for const/non-const versions of T w/ friendship. */ /** @{ */