diff options
-rw-r--r-- | common/aloptional.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/aloptional.h b/common/aloptional.h index 49c47c93..55c1726b 100644 --- a/common/aloptional.h +++ b/common/aloptional.h @@ -228,10 +228,8 @@ public: { } ~optional() = default; - std::enable_if_t<std::is_copy_constructible<T>::value && std::is_copy_assignable<T>::value, - optional&> operator=(const optional&) = default; - std::enable_if_t<std::is_move_constructible<T>::value && std::is_move_assignable<T>::value, - optional&> operator=(optional&&) = default; + optional& operator=(const optional&) = default; + optional& operator=(optional&&) = default; optional& operator=(nullopt_t) noexcept { mStore.reset(); return *this; } template<typename U=T> std::enable_if_t<std::is_constructible<T, U>::value |