diff --git a/src/ox/model/descwrite.hpp b/src/ox/model/descwrite.hpp index 84f3f4f5e..f4a8470a2 100644 --- a/src/ox/model/descwrite.hpp +++ b/src/ox/model/descwrite.hpp @@ -39,7 +39,7 @@ template constexpr int indirectionLevels_v = 1 + indirectionLevels_v; template -constexpr int indirectionLevels_v<::ox::Vector> = 1 + indirectionLevels_v; +constexpr int indirectionLevels_v<::ox::Vector> = 1 + indirectionLevels_v; template constexpr auto buildSubscriptStack(const T*, SubscriptStack*) noexcept { @@ -246,7 +246,7 @@ constexpr Error TypeDescWriter::fieldCString(CRStringView name, Args&&...) noexc template constexpr const DescriptorType *TypeDescWriter::type(const T *val) const noexcept { if constexpr(isVector_v) { - return type(val->data()); + return type(static_cast(nullptr)); } else { auto [t, err] = m_typeStore->template get(); if (!err) {