[ox/std] Fix Integer assignment operator return
All checks were successful
Build / build (push) Successful in 2m27s

This commit is contained in:
Gary Talent 2024-04-29 22:54:34 -05:00
parent cebd3b0a0f
commit acd93337d4

View File

@ -120,8 +120,7 @@ constexpr Integer<T, Base>::Integer(const Integer<T, Base> &i) noexcept: Base(i)
template<typename T, class Base>
constexpr Integer<T, Base> &Integer<T, Base>::operator=(Integer<T, Base> i) noexcept {
// needed in case T has nodiscard
constexpr auto ignore = [](Base) {};
ignore(Base::operator=(i));
Base::operator=(i);
m_i = i.m_i;
return *this;
}