29 Sep
2011
29 Sep
'11
10:02 a.m.
hi, I am trying to use stl::listboost::xpressive::sregex, but the following code cannot be complied stl::listboost::xpressive::sregex rxs; sregex rex = boost::xpressive::sregex::compile("hello"); rxs.push_back(rex); 50 std::listboost::xpressive::sregex::iterator it; 51 52 for (it= rxs.begin(); it != rxs.end(); it++) 53 { //do something } line 52, "it= rxs.begin()" cannot be complied, it said the no match operator =., what is wrong? by the way, I cannot use std::vectorboost::xpressive::sregex, it compiled failed. I searched on web, it is said there is a bug with this issue. I do not want to change the version of boost library I used, so let's ignore this issue at the moment. thanks. Richard.