diff options
Diffstat (limited to 'include/ncurses/utils/multiflags.hpp')
-rw-r--r-- | include/ncurses/utils/multiflags.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/ncurses/utils/multiflags.hpp b/include/ncurses/utils/multiflags.hpp index e6af6a6..caed9af 100644 --- a/include/ncurses/utils/multiflags.hpp +++ b/include/ncurses/utils/multiflags.hpp @@ -37,8 +37,8 @@ public: : value_(static_cast<value_type>(flag)) {} NCURSES_CPP_CONSTEXPR - multiflags(multiflags<BitType, SecondBitType> const &rhs) - NCURSES_CPP_NOEXCEPT = default; + multiflags(multiflags<BitType, SecondBitType> const &rhs) NCURSES_CPP_NOEXCEPT + : value_(rhs.value_) {} NCURSES_CPP_CONSTEXPR explicit multiflags(value_type multiflags) : value_(multiflags) {} @@ -88,9 +88,11 @@ public: return *this; \ } - NCURSES_CPP_CONSTEXPR_14 multiflags<BitType, SecondBitType> & - operator=(multiflags<BitType, SecondBitType> const &rhs) - NCURSES_CPP_NOEXCEPT = default; + NCURSES_CPP_CONSTEXPR_14 multiflags<BitType, SecondBitType> &operator=( + multiflags<BitType, SecondBitType> const &rhs) NCURSES_CPP_NOEXCEPT { + value_ = rhs.value_; + return *this; + } NCURSES_CPP_ASSIGNMENT(&) NCURSES_CPP_ASSIGNMENT(|) |