Read empty values with boost::spirit
问题 I want to read a CSV into a struct : struct data { std::string a; std::string b; std::string c; } However, I want to read even empty string to ensure all values are in their proper place. I adapted the struct to a boost::fusion, so the following works : // Our parser (using a custom skipper to skip comments and empty lines ) template <typename Iterator, typename skipper = comment_skipper<Iterator> > struct google_parser : qi::grammar<Iterator, addressbook(), skipper> { google_parser() :