aboutsummaryrefslogtreecommitdiffstats
path: root/common/aloptional.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-07-01 01:08:53 -0700
committerChris Robinson <[email protected]>2019-07-01 10:44:55 -0700
commit0066ac26f0c2fa42ba31fdda208bdca961d582a8 (patch)
treed0f53248e9ff8a23dcf23f9b27b575471be49a15 /common/aloptional.h
parent22311169d88295cabb91a95c25886c0d3cfbf149 (diff)
Add a missing return
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 75891329..207c299e 100644
--- a/common/aloptional.h
+++ b/common/aloptional.h
@@ -40,7 +40,7 @@ public:
optional(const optional&) noexcept = delete;
~optional() { reset(); }
- optional& operator=(nullopt_t) noexcept { reset(); }
+ optional& operator=(nullopt_t) noexcept { reset(); return *this; }
template<REQUIRES(std::is_copy_constructible<T>::value && std::is_copy_assignable<T>::value)>
optional& operator=(const optional &rhs)
{