[ox/std] Change Result(type&&) to use forward

(synced from 13ba8430c7)
This commit is contained in:
2022-02-26 10:05:11 -06:00
parent d0ec87590c
commit 5f65efad8c
+1 -1
View File
@@ -131,7 +131,7 @@ struct [[nodiscard]] Result {
constexpr Result(const type &value, const Error &error = OxError(0)) noexcept: value(const_cast<type&>(value)), error(error) {
}
constexpr Result(type &&value, const Error &error = OxError(0)) noexcept: value(std::move(value)), error(error) {
constexpr Result(type &&value, const Error &error = OxError(0)) noexcept: value(ox::forward<type>(value)), error(error) {
}
explicit constexpr operator const type&() const noexcept {