From 23c5a603ae813012268e0159bfcf25aea3c2118a Mon Sep 17 00:00:00 2001 From: Patrick Urbanke Date: Mon, 1 Apr 2024 13:31:14 +0200 Subject: [PATCH] Added more reliable checks in Parser_tagged_union --- include/rfl/parsing/Parser_tagged_union.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rfl/parsing/Parser_tagged_union.hpp b/include/rfl/parsing/Parser_tagged_union.hpp index 4efcfbb3..d67f0953 100644 --- a/include/rfl/parsing/Parser_tagged_union.hpp +++ b/include/rfl/parsing/Parser_tagged_union.hpp @@ -132,7 +132,7 @@ struct Parser> { /// tag, if the object doesn't already contain the wrap. template static auto wrap_if_necessary(const T& _val) noexcept { - if constexpr (field_names_t::template contains<_discriminator>()) { + if constexpr (named_tuple_t::Names::template contains<_discriminator>()) { return _val; } else { const auto tag = internal::make_tag<_discriminator, T>(_val);