#ifndef RFL_INTERNAL_HAS_N_FIELDS_HPP_ #define RFL_INTERNAL_HAS_N_FIELDS_HPP_ #include #include #include #if __GNUC__ #ifndef __clang__ #pragma GCC system_header #endif #endif namespace rfl { namespace internal { struct any { template constexpr operator T() const noexcept; }; template struct constructible_with_n_fields_impl : std::false_type {}; template struct constructible_with_n_fields_impl< T, std::index_sequence, std::void_t> : std::true_type {}; template using constructible_with_n_fields = constructible_with_n_fields_impl>; template constexpr bool has_n_fields = constructible_with_n_fields::value && !constructible_with_n_fields::value; } // namespace internal } // namespace rfl #endif