[ox/std] Fix Integer assignment operator return
This commit is contained in:
parent
43e2e2155b
commit
cebd3b0a0f
4
deps/ox/src/ox/std/strongint.hpp
vendored
4
deps/ox/src/ox/std/strongint.hpp
vendored
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user