
14 Dec
2010
14 Dec
'10
10:15 p.m.
Hi I have upgraded my boost to 1_45 (it was 1_36) and since then I have an error on boost::regex_search here is the code std::string regexp = "\\^:\\([^;^]*\\);\\([^;^]*\\);\\([^^]*\\)\\^:"; boost::regex expression( regexp.c_str() , boost::regex::basic|boost::regex::icase ); std::string::const_iterator it_prev = str.begin(); std::string::const_iterator it_end = str.end(); std::string tmp; while (boost::regex_search(it_prev, what, expression)) { res = true; tmp.assign(it_prev,what[0].first); ... tmp.assign(what[2].first, what[2].second); ... reading the html doc I can not find how to rewrite this while loop. I'm not a boost expert, any help would be appreciated. Thank you