aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-09-13 12:03:27 +0200
committerGitHub <[email protected]>2023-09-13 12:03:27 +0200
commitcaf171abc24c20206eb8ecaff4b6e9137cb9e871 (patch)
tree00ad62f2e829e6cb4608a4d70c6c4104b21315ce /src/zencore/include
parentincremental oplog upload for block-based targets (#392) (diff)
downloadzen-caf171abc24c20206eb8ecaff4b6e9137cb9e871.tar.xz
zen-caf171abc24c20206eb8ecaff4b6e9137cb9e871.zip
ZenCacheStore is now reference counted (#398)
this change also adds a GetNamespaces function which may be used to enumerate all currently known cache namespaces
Diffstat (limited to 'src/zencore/include')
-rw-r--r--src/zencore/include/zencore/refcount.h1
1 files changed, 1 insertions, 0 deletions
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;