From acd93337d4fe1d150ad83b0af3c37c4b8d4cf9fb Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 29 Apr 2024 22:54:34 -0500 Subject: [PATCH] [ox/std] Fix Integer assignment operator return --- deps/ox/src/ox/std/strongint.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deps/ox/src/ox/std/strongint.hpp b/deps/ox/src/ox/std/strongint.hpp index dd7bf76e..a624f7aa 100644 --- a/deps/ox/src/ox/std/strongint.hpp +++ b/deps/ox/src/ox/std/strongint.hpp @@ -120,8 +120,7 @@ constexpr Integer::Integer(const Integer &i) noexcept: Base(i) template constexpr Integer &Integer::operator=(Integer 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; }