Giacomo Travaglini has submitted this change and it was merged. (
https://gem5-review.googlesource.com/c/public/gem5/+/13717 )
Change subject: base: Add type alias for raw pointer in RefCountingPtr
......................................................................
base: Add type alias for raw pointer in RefCountingPtr
Change-Id: Ied2204566a8fc5c34fb4702301051b8e5ab84ffe
Signed-off-by: Giacomo Gabrielli <[email protected]>
Reviewed-on: https://gem5-review.googlesource.com/c/13717
Reviewed-by: Andreas Sandberg <[email protected]>
Maintainer: Andreas Sandberg <[email protected]>
---
M src/base/refcnt.hh
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Andreas Sandberg: Looks good to me, approved; Looks good to me, approved
diff --git a/src/base/refcnt.hh b/src/base/refcnt.hh
index f282123..197e418 100644
--- a/src/base/refcnt.hh
+++ b/src/base/refcnt.hh
@@ -119,6 +119,9 @@
template <class T>
class RefCountingPtr
{
+ public:
+ using PtrType = T*;
+
protected:
/** Convenience aliases for const/non-const versions of T w/
friendship. */
/** @{ */
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/13717
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: Ied2204566a8fc5c34fb4702301051b8e5ab84ffe
Gerrit-Change-Number: 13717
Gerrit-PatchSet: 7
Gerrit-Owner: Giacomo Gabrielli <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Giacomo Travaglini <[email protected]>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev