Example parsing error
问题 I'm trying to parse an example of boost spirit (2.5.2) following the example. My code is the following #include <boost\spirit\home\qi.hpp> #include <iostream> #include <string> #include <utility> int main() { // Parsing two numbers std::string input("1.0 2.0"); std::pair<double, double> p; boost::spirit::qi::phrase_parse( input.begin(), input.end(), boost::spirit::qi::double_ >> boost::spirit::qi::double_ , // Parse grammar boost::spirit::qi::space, p ); return 0; } It's almost equal to the