From e9c5134286368d45e05e908ba3a621dad7e3f5d2 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 14 Nov 2023 20:20:12 -0600 Subject: [PATCH] [ox/model] Fix compile error when instantiating ModelHandlerAdaptor for readers --- deps/ox/src/ox/model/modelhandleradaptor.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deps/ox/src/ox/model/modelhandleradaptor.hpp b/deps/ox/src/ox/model/modelhandleradaptor.hpp index 80797840..d63f5d1e 100644 --- a/deps/ox/src/ox/model/modelhandleradaptor.hpp +++ b/deps/ox/src/ox/model/modelhandleradaptor.hpp @@ -33,7 +33,7 @@ class ModelHandlerInterface { template constexpr ox::Error setTypeInfo( - const char* name, + const char *name, int version, const Vector& typeParams, std::size_t fields) noexcept { @@ -46,7 +46,7 @@ class ModelHandlerInterface { } template - constexpr Error fieldCString(const char *name, const char val[len]) noexcept { + constexpr Error fieldCString(const char *name, const char val[len]) noexcept requires(Handler::opType() != OpType::Read) { return m_handler->fieldCString(name, &val[0], len); } @@ -54,11 +54,11 @@ class ModelHandlerInterface { return m_handler->fieldCString(name, val); } - constexpr Error fieldCString(const char *name, const char *const*val) noexcept { + constexpr Error fieldCString(const char *name, const char *const*val) noexcept requires(Handler::opType() != OpType::Read) { return m_handler->fieldCString(name, val); } - constexpr Error fieldCString(const char *name, const char **val) noexcept { + constexpr Error fieldCString(const char *name, const char **val) noexcept requires(Handler::opType() != OpType::Read) { return m_handler->fieldCString(name, val); } @@ -66,7 +66,7 @@ class ModelHandlerInterface { return m_handler->fieldCString(name, val, buffLen); } - constexpr Error fieldCString(const char *name, const char **val, std::size_t buffLen) noexcept { + constexpr Error fieldCString(const char *name, const char **val, std::size_t buffLen) noexcept requires(Handler::opType() != OpType::Read) { return m_handler->fieldCString(name, val, buffLen); }