69 and use_boost_describe_v<T> )
73 boost::describe::describe_members<T, boost::describe::mod_public>;
75 boost::describe::describe_members<T, boost::describe::mod_private>;
77 boost::describe::describe_members<T, boost::describe::mod_protected>;
78 static_assert( boost::mp11::mp_empty<pri_desc_t>::value,
79 "Classes with private member variables are not supported. "
80 "Must use a manual mapping." );
81 static_assert( boost::mp11::mp_empty<pro_desc_t>::value,
82 "Classes with protected member variables are not supported. "
83 "Must use a manual mapping." );
86 using desc_t =
typename describe_impl::describe_member<U>::type;
88 template<
template<
typename...>
typename List,
typename... Ts>
89 static constexpr auto to_json_data_impl( T
const &value,
90 List<Ts...>
const & )
noexcept {
91 return std::forward_as_tuple( value.*Ts::pointer... );
95 using type =
typename describe_impl::member_list<pub_desc_t>::type;
97 static constexpr auto to_json_data( T
const &value )
noexcept {
98 return to_json_data_impl( value, pub_desc_t{ } );