From 1fb53e50908e95038cb7e8714b5bf68c3d38ef2d Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Fri, 16 Jun 2017 15:22:05 -0700 Subject: [PATCH] fix operator = bug in util::optional --- src/util/optional.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/optional.h b/src/util/optional.h index 7144707..3186719 100644 --- a/src/util/optional.h +++ b/src/util/optional.h @@ -399,7 +399,6 @@ private: public: using Base::Base; - using Base::operator=; using Base::reset; using Base::emplace; constexpr optional() noexcept = default; @@ -469,6 +468,8 @@ public: : Base(in_place, std::forward(value)) { } + optional &operator=(const optional &) = default; + optional &operator=(optional &&) = default; template ::type, optional>::value -- 2.30.2