diff --git a/deps/ox/src/ox/std/error.hpp b/deps/ox/src/ox/std/error.hpp index 6018971d..45d217ea 100644 --- a/deps/ox/src/ox/std/error.hpp +++ b/deps/ox/src/ox/std/error.hpp @@ -165,21 +165,24 @@ struct [[nodiscard]] Result { return error == 0; } - constexpr Error copyTo(type &val) const& noexcept { + template + constexpr Error copyTo(U &val) const& noexcept { if (!error) [[likely]] { val = value; } return error; } - constexpr Error copyTo(type &val) && noexcept { + template + constexpr Error copyTo(U &val) && noexcept { if (!error) [[likely]] { val = std::move(value); } return error; } - constexpr Error moveTo(type &val) noexcept { + template + constexpr Error moveTo(U &val) noexcept { if (!error) [[likely]] { val = std::move(value); }