[ox/model] Make model friend macro constexpr and noexcept
This commit is contained in:
parent
f4895948e2
commit
5ea36836bd
2
deps/ox/src/ox/model/def.hpp
vendored
2
deps/ox/src/ox/model/def.hpp
vendored
@ -11,4 +11,4 @@
|
||||
#define oxModelBegin(modelName) template<typename T> constexpr ox::Error model(T *io, modelName *o) noexcept { io->template setTypeInfo<modelName>();
|
||||
#define oxModelEnd() return OxError(0); }
|
||||
#define oxModelField(fieldName) oxReturnError(io->field(#fieldName, &o->fieldName));
|
||||
#define oxModelFriend(modelName) template<typename T> friend ox::Error model(T*, modelName*)
|
||||
#define oxModelFriend(modelName) template<typename T> friend constexpr ox::Error model(T*, modelName*) noexcept
|
||||
|
Loading…
Reference in New Issue
Block a user