Created
July 11, 2011 09:49
-
-
Save benben/1075622 to your computer and use it in GitHub Desktop.
boost::spirit::qi::rule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//works | |
//output of v with values as expected | |
bool r = phrase_parse( | |
first, | |
last, | |
double_ % ',', | |
space, | |
v | |
); | |
//doesn't work | |
//output of v with zeros :( | |
//type of Iterator is std::string::iterator | |
boost::spirit::qi::rule<Iterator, double> val; | |
val = double_; | |
bool r = phrase_parse( | |
first, | |
last, | |
val % ',', | |
space, | |
v | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment