#include #include #include BOOST_FUSION_DEFINE_STRUCT( (client), foo, (int, integer) (int, decimal) (int, length)) // sum of integer and decimal digits to speed up conversation ; namespace fusion = boost::fusion; int main() { client::foo val; typedef fusion::result_of::begin::type begin_iterator_type; typedef fusion::result_of::end::type end_iterator_type; end_iterator_type end = fusion::end(val); for (begin_iterator_type i = fusion::begin(val); i != end; fusion::next(i)) { //fusion::deref(i); std::cout << "*"; } std::cout << std::endl; }