December 5th, 2011, 07:38 PM
The bug of boost::spirit?
I try some codes snippet from boost spirit, but it only incur a lot of error mesasges
After some struggle, I figured it out the compiler say it needs two arguments
namespace qi = boost::spirit::qi;
std::pair<double, double> p;
qi::parse(input.begin(), input.end(), qi::double_ >> ",">>qi::double_, p); //#1
the correct answer is
What am I lack to make #1 compile?Thanks
double a, b;
qi::parse(input.begin(), input.end(), qi::double_ >> ",">>qi::double_, a, b);
I choose boost::spirit to develop some parsers and source codes generator
When I deal with something like xml or some repetitive codes, codes
generator could be very useful.
Although I consider that boost::regex could make the job done too, but learning
how to work with boost::spirit may give me more flexibility. Besides, I heard
that the performance of boost::spirit is splendid?
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!