[ox/model] Fix compile error when instantiating ModelHandlerAdaptor for readers

This commit is contained in:
Gary Talent 2023-11-14 20:20:12 -06:00
parent b7a1236bae
commit e9c5134286

View File

@ -46,7 +46,7 @@ class ModelHandlerInterface {
} }
template<std::size_t len> template<std::size_t len>
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); return m_handler->fieldCString(name, &val[0], len);
} }
@ -54,11 +54,11 @@ class ModelHandlerInterface {
return m_handler->fieldCString(name, val); 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); 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); return m_handler->fieldCString(name, val);
} }
@ -66,7 +66,7 @@ class ModelHandlerInterface {
return m_handler->fieldCString(name, val, buffLen); 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); return m_handler->fieldCString(name, val, buffLen);
} }