How to access data of nested objects in boost::spirit::karma?
问题 In an ItemList containing lists of Item objects, how do I access the Item objects in the generator? The following sample code compiles on VC9 (with boost include and link directories set apropriately). I don't know how to set up list_generator::item . #include <boost/config/warning_disable.hpp> #include <boost/foreach.hpp> #include <boost/assign/list_of.hpp> #include <boost/range/adaptors.hpp> #include <boost/range/algorithm.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/spirit