From 9948346ce4ce1cb49e010437922352fb92c32ce6 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 27 Jan 2024 23:40:16 -0600 Subject: [PATCH] [ox/model] Fix clangd false alarm --- deps/ox/src/ox/model/modelvalue.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deps/ox/src/ox/model/modelvalue.hpp b/deps/ox/src/ox/model/modelvalue.hpp index 8f3ec13c..82892714 100644 --- a/deps/ox/src/ox/model/modelvalue.hpp +++ b/deps/ox/src/ox/model/modelvalue.hpp @@ -334,7 +334,12 @@ consteval bool isVector(const ModelValueVector*) noexcept { return true; } +constexpr Error model(auto *h, CommonPtrWith auto *obj) noexcept; +constexpr Error model(auto *h, CommonPtrWith auto *obj) noexcept; + + class ModelObject { + friend constexpr Error model(auto *h, CommonPtrWith auto *obj) noexcept; public: struct Field { String name; @@ -517,7 +522,7 @@ class ModelUnion { String name; ModelValue value; }; - oxModelFriend(ModelUnion); + friend constexpr Error model(auto *h, CommonPtrWith auto *obj) noexcept; friend ModelValue; Vector> m_fieldsOrder; HashMap m_fields;