diff --git a/deps/ox/src/ox/model/typenamecatcher.hpp b/deps/ox/src/ox/model/typenamecatcher.hpp index a08084d1..3a593879 100644 --- a/deps/ox/src/ox/model/typenamecatcher.hpp +++ b/deps/ox/src/ox/model/typenamecatcher.hpp @@ -44,8 +44,8 @@ struct TypeNameCatcher { }; -template -constexpr const char *getModelTypeName() noexcept { +template +constexpr Str getModelTypeName() noexcept { auto a = std::allocator(); auto t = a.allocate(1); TypeNameCatcher nc; @@ -54,14 +54,14 @@ constexpr const char *getModelTypeName() noexcept { return nc.name; } -template -constexpr const char *getModelTypeName(T *val) noexcept { +template +constexpr Str getModelTypeName(T *val) noexcept { TypeNameCatcher nc; oxIgnoreError(model(&nc, val)); return nc.name; } -template -constexpr auto ModelTypeName_v = getModelTypeName(); +template +constexpr auto ModelTypeName_v = getModelTypeName(); }