From 61bb079036aa90a819f58d1c26b4f3c14588b218 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 1 Aug 2019 20:15:47 -0700 Subject: [PATCH] Add operator* to intrusive_ptr --- common/intrusive_ptr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/common/intrusive_ptr.h b/common/intrusive_ptr.h index 85f019fd..831b8302 100644 --- a/common/intrusive_ptr.h +++ b/common/intrusive_ptr.h @@ -70,6 +70,7 @@ public: operator bool() const noexcept { return mPtr != nullptr; } + T& operator*() const noexcept { return *mPtr; } T* operator->() const noexcept { return mPtr; } T* get() const noexcept { return mPtr; }