[ox/std] Fix Integer assignment operator return

This commit is contained in:
Gary Talent 2024-04-29 22:52:34 -05:00
parent 43e2e2155b
commit cebd3b0a0f

View File

@ -34,7 +34,7 @@ class Integer: public Base {
constexpr Integer(const Integer<T, Base> &i) noexcept; constexpr Integer(const Integer<T, Base> &i) noexcept;
constexpr Integer<T, Base> operator=(Integer<T, Base> i) noexcept; constexpr Integer<T, Base> &operator=(Integer<T, Base> i) noexcept;
constexpr Integer<T, Base> operator==(Integer<T, Base> i) const noexcept; constexpr Integer<T, Base> operator==(Integer<T, Base> i) const noexcept;
@ -118,7 +118,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) {}; constexpr auto ignore = [](Base) {};
ignore(Base::operator=(i)); ignore(Base::operator=(i));