[ox] Fix most MSVC warnings

This commit is contained in:
2023-11-12 00:31:13 -06:00
parent 109f272650
commit 158115c29f
5 changed files with 6 additions and 6 deletions

View File

@ -132,7 +132,7 @@ struct [[nodiscard]] Result {
T value;
Error error;
constexpr Result() noexcept: error(0) {
constexpr Result() noexcept: value(), error(0) {
}
template<typename U>
@ -143,7 +143,7 @@ struct [[nodiscard]] Result {
constexpr Result(const Result<U> &&other) noexcept: value(std::move(other.value)), error(std::move(other.error)) {
}
constexpr Result(const Error &error) noexcept: error(error) {
constexpr Result(const Error &error) noexcept: value(), error(error) {
}
constexpr Result(const type &value, const Error &error = OxError(0)) noexcept: value(const_cast<type&>(value)), error(error) {