From 73a532a06e06bb020391e30eb9baaf28a2e1f9ea Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 9 Apr 2024 13:22:57 +0200 Subject: codec: Fixed missing has_key function --- modules/codec/c++/schema_factory.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/codec/c++') diff --git a/modules/codec/c++/schema_factory.hpp b/modules/codec/c++/schema_factory.hpp index 6b824f4..7eb3e5c 100644 --- a/modules/codec/c++/schema_factory.hpp +++ b/modules/codec/c++/schema_factory.hpp @@ -46,6 +46,11 @@ public: template struct schema_factory...>> { using Schema = schema::Union...>; + + template + static constexpr bool has_key() noexcept { + return schema_has_key::value; + } template constexpr schema_factory...,schema::Member>> add() const noexcept { -- cgit v1.2.3