From 22ce855108cb8a1ebadbd28448b623c470f86d5c Mon Sep 17 00:00:00 2001 From: Giacomo Gabrielli Date: Mon, 22 Oct 2018 17:21:45 +0100 Subject: [PATCH] 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 --- src/base/refcnt.hh | 3 +++ 1 file changed, 3 insertions(+) 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. */ /** @{ */ -- 2.30.2