diff options
-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) { |