From 2eccddf082896a472e8d724c80592877bb3a9f5e Mon Sep 17 00:00:00 2001 From: FeO3 Date: Mon, 24 Mar 2025 00:23:05 +0800 Subject: [PATCH] Fix make_tag to correctly handle reflection types (#391) --- include/rfl/internal/make_tag.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rfl/internal/make_tag.hpp b/include/rfl/internal/make_tag.hpp index 38a44f0a..6c5d12dd 100644 --- a/include/rfl/internal/make_tag.hpp +++ b/include/rfl/internal/make_tag.hpp @@ -16,7 +16,7 @@ namespace rfl::internal { template static inline auto make_tag(const T& _t) noexcept { if constexpr (internal::has_reflection_type_v) { - return make_tag(); + return make_tag<_discriminator>(_t.reflection()); } else if constexpr (named_tuple_t::Names::template contains< _discriminator>()) { return *to_view(_t).template get<_discriminator>();