#ifndef RFL_INTERNAL_HASFLATTENFIELDS_HPP_ #define RFL_INTERNAL_HASFLATTENFIELDS_HPP_ #include #include #include #include "is_flatten_field.hpp" namespace rfl { namespace internal { template constexpr bool has_flatten_fields() { if constexpr (_i == std::tuple_size_v) { return false; } else { using T = std::remove_cvref_t>; return is_flatten_field_v || has_flatten_fields(); } } } // namespace internal } // namespace rfl #endif