Skip to content

Instantly share code, notes, and snippets.

@benben
Created July 11, 2011 09:49
Show Gist options
  • Save benben/1075622 to your computer and use it in GitHub Desktop.
Save benben/1075622 to your computer and use it in GitHub Desktop.
boost::spirit::qi::rule
//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