From c74090069111c412dae564225ebe62a980f49da3 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 (synced from 5ea36836bd909a85b311adfe3adaceeaedf069a4) --- src/ox/model/def.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/model/def.hpp b/src/ox/model/def.hpp index 016f7be93..7fe95c646 100644 --- a/src/ox/model/def.hpp +++ b/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