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