From ba9e720f9f78e876350662fcf8442ba96703ed3d Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 15 Jan 2025 23:34:48 -0600 Subject: [PATCH] [ox/model] Fix ModelTypeName_v to use requireModelTypeName --- deps/ox/src/ox/model/typenamecatcher.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/ox/src/ox/model/typenamecatcher.hpp b/deps/ox/src/ox/model/typenamecatcher.hpp index ec650096..6d907c82 100644 --- a/deps/ox/src/ox/model/typenamecatcher.hpp +++ b/deps/ox/src/ox/model/typenamecatcher.hpp @@ -140,16 +140,16 @@ constexpr Str getModelTypeName() noexcept { return out; } -template +template [[nodiscard]] consteval auto requireModelTypeName() noexcept { - constexpr auto name = getModelTypeName(); + constexpr auto name = getModelTypeName(); static_assert(ox::StringView{name}.len(), "Type lacks required TypeName"); return name; } template -constexpr auto ModelTypeName_v = getModelTypeName(); +constexpr auto ModelTypeName_v = requireModelTypeName(); template constexpr auto ModelTypeVersion_v = requireModelTypeVersion();