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>();