From caf171abc24c20206eb8ecaff4b6e9137cb9e871 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Wed, 13 Sep 2023 12:03:27 +0200 Subject: ZenCacheStore is now reference counted (#398) this change also adds a GetNamespaces function which may be used to enumerate all currently known cache namespaces --- src/zencore/include/zencore/refcount.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/zencore') diff --git a/src/zencore/include/zencore/refcount.h b/src/zencore/include/zencore/refcount.h index f0bb6b85e..74a8f3ac0 100644 --- a/src/zencore/include/zencore/refcount.h +++ b/src/zencore/include/zencore/refcount.h @@ -141,6 +141,7 @@ public: [[nodiscard]] inline bool IsNull() const { return m_Ref == nullptr; } inline explicit operator bool() const { return m_Ref != nullptr; } inline T* operator->() const { return m_Ref; } + inline T& operator*() const { return *m_Ref; } inline T* Get() const { return m_Ref; } inline std::strong_ordering operator<=>(const Ref& Rhs) const = default; -- cgit v1.2.3