[ox] Fix for MSVC

This commit is contained in:
2022-03-12 11:48:58 -06:00
parent c6780e41dd
commit 0739c7d611
10 changed files with 31 additions and 15 deletions

View File

@ -135,6 +135,8 @@ struct [[nodiscard]] Result {
constexpr Result(type &&value, const Error &error = OxError(0)) noexcept: value(ox::forward<type>(value)), error(error) {
}
constexpr ~Result() noexcept = default;
explicit constexpr operator const type&() const noexcept {
return value;
}