diff --git a/deps/ox/src/ox/model/def.hpp b/deps/ox/src/ox/model/def.hpp index 016f7be9..7fe95c64 100644 --- a/deps/ox/src/ox/model/def.hpp +++ b/deps/ox/src/ox/model/def.hpp @@ -11,4 +11,4 @@ #define oxModelBegin(modelName) template constexpr ox::Error model(T *io, modelName *o) noexcept { io->template setTypeInfo(); #define oxModelEnd() return OxError(0); } #define oxModelField(fieldName) oxReturnError(io->field(#fieldName, &o->fieldName)); -#define oxModelFriend(modelName) template friend ox::Error model(T*, modelName*) +#define oxModelFriend(modelName) template friend constexpr ox::Error model(T*, modelName*) noexcept