diff options
author | Chris Robinson <[email protected]> | 2021-07-31 14:21:46 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-07-31 14:21:46 -0700 |
commit | 440b59704c82684786bf7e251b4882f2a12c4c06 (patch) | |
tree | 0ab56cc2aa43bb0f9050c60703054529307f54dc /common/aloptional.h | |
parent | 47c20b283efd8115e6e8bbc9c25029dc21da9214 (diff) |
Fix al::optional operator*
Diffstat (limited to 'common/aloptional.h')
-rw-r--r-- | common/aloptional.h | 2 |
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); } |