aboutsummaryrefslogtreecommitdiffstats
path: root/common/aloptional.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-07-31 14:21:46 -0700
committerChris Robinson <[email protected]>2021-07-31 14:21:46 -0700
commit440b59704c82684786bf7e251b4882f2a12c4c06 (patch)
tree0ab56cc2aa43bb0f9050c60703054529307f54dc /common/aloptional.h
parent47c20b283efd8115e6e8bbc9c25029dc21da9214 (diff)
Fix al::optional operator*
Diffstat (limited to 'common/aloptional.h')
-rw-r--r--common/aloptional.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/aloptional.h b/common/aloptional.h
index 0244c56f..a8ca18ba 100644
--- a/common/aloptional.h
+++ b/common/aloptional.h
@@ -116,7 +116,7 @@ public:
const T* operator->() const { return std::addressof(mStore.mValue); }
T* operator->() { return std::addressof(mStore.mValue); }
- const T& operator*() const& { return this->mValue; }
+ const T& operator*() const& { return mStore.mValue; }
T& operator*() & { return mStore.mValue; }
const T&& operator*() const&& { return std::move(mStore.mValue); }
T&& operator*() && { return std::move(mStore.mValue); }