[ox/std] Fix Integer assignment operator return

This commit is contained in:
2024-04-29 22:54:34 -05:00
parent cebd3b0a0f
commit acd93337d4
+1 -2
View File
@@ -120,8 +120,7 @@ constexpr Integer<T, Base>::Integer(const Integer<T, Base> &i) noexcept: Base(i)
template<typename T, class Base> template<typename T, class Base>
constexpr Integer<T, Base> &Integer<T, Base>::operator=(Integer<T, Base> i) noexcept { constexpr Integer<T, Base> &Integer<T, Base>::operator=(Integer<T, Base> i) noexcept {
// needed in case T has nodiscard // needed in case T has nodiscard
constexpr auto ignore = [](Base) {}; Base::operator=(i);
ignore(Base::operator=(i));
m_i = i.m_i; m_i = i.m_i;
return *this; return *this;
} }