From: Jacob Lifshay Date: Fri, 16 Jun 2017 22:22:05 +0000 (-0700) Subject: fix operator = bug in util::optional X-Git-Tag: gsoc-2017~97 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1fb53e50908e95038cb7e8714b5bf68c3d38ef2d;p=kazan.git fix operator = bug in util::optional --- 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