From 4d806021d00c4ccc81806850e2bca5581afd6ef7 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 29 May 2020 20:24:09 -0500 Subject: [PATCH] [ox/claw] Fix TypeInfoCatcher to fit model handler API --- deps/ox/src/ox/claw/write.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deps/ox/src/ox/claw/write.hpp b/deps/ox/src/ox/claw/write.hpp index 0dc60d91..e7534d9c 100644 --- a/deps/ox/src/ox/claw/write.hpp +++ b/deps/ox/src/ox/claw/write.hpp @@ -23,7 +23,7 @@ struct TypeInfoCatcher { const char *name = nullptr; - template + template constexpr void setTypeInfo(const char *name = T::TypeName, int = T::Fields) noexcept { this->name = name; } @@ -32,6 +32,10 @@ struct TypeInfoCatcher { return OxError(0); } + static constexpr auto opType() { + return OpType::Write; + } + }; template