12 Feb
2010
12 Feb
'10
5:53 a.m.
On Thu, Feb 11, 2010 at 03:22:53PM -0700, OvermindDL1 wrote:
std::string result; parse(str.begin(),str.end(), raw[+~char_(delim)]%lit(delim), result);
This fails in the first argument of qi::parse: using boost::spirit::qi::lit; using boost::spirit::qi::raw; using boost::spirit::qi::string; std::string str("foo---bar---baz"); std::string delim("---"); std::string result; boost::spirit::qi::parse(str.begin(), str.end(), raw[+~string(delim)] % lit(delim), result); Any ideas why? Matthias -- Matthias Vallentin vallentin@icsi.berkeley.edu http://www.icir.org/matthias