#ifndef RFL_INTERNAL_NUM_FIELDS_HPP_ #define RFL_INTERNAL_NUM_FIELDS_HPP_ #include #include "rfl/internal/has_n_fields.hpp" namespace rfl { namespace internal { template struct num_fields_impl { static constexpr std::size_t value = num_fields_impl::value; }; template requires has_n_fields struct num_fields_impl { static constexpr std::size_t value = _n; }; template constexpr std::size_t num_fields = num_fields_impl::value; } // namespace internal } // namespace rfl #endif