[ox] Fix GCC errors

This commit is contained in:
2019-06-06 18:50:06 -05:00
parent 23b662c2aa
commit 096509c2be
9 changed files with 34 additions and 28 deletions

View File

@ -9,6 +9,7 @@
#pragma once
#include "typetraits.hpp"
#include "utility.hpp"
#ifdef DEBUG
#define OxError(x) ox::_error(__FILE__, __LINE__, x)
@ -59,7 +60,7 @@ struct ValErr {
inline constexpr ValErr() = default;
inline constexpr ValErr(T value, Error error = 0): value(value), error(error) {
inline constexpr ValErr(T value, Error error = 0): value(ox::move(value)), error(error) {
}
inline constexpr operator const T&() const {