[ox/std] Fix Integer assignment operator return
All checks were successful
Build / build (push) Successful in 2m27s
All checks were successful
Build / build (push) Successful in 2m27s
This commit is contained in:
parent
cebd3b0a0f
commit
acd93337d4
3
deps/ox/src/ox/std/strongint.hpp
vendored
3
deps/ox/src/ox/std/strongint.hpp
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user