From 5ea36836bd909a85b311adfe3adaceeaedf069a4 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 10 Feb 2022 02:06:13 -0600 Subject: [PATCH] [ox/model] Make model friend macro constexpr and noexcept --- deps/ox/src/ox/model/def.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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