diff options
author | Chris Robinson <[email protected]> | 2019-07-01 01:08:53 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-07-01 10:44:55 -0700 |
commit | 0066ac26f0c2fa42ba31fdda208bdca961d582a8 (patch) | |
tree | d0f53248e9ff8a23dcf23f9b27b575471be49a15 /common/aloptional.h | |
parent | 22311169d88295cabb91a95c25886c0d3cfbf149 (diff) |
Add a missing return
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 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) { |