Boost Users :
Subject: [Boost-users] problem with xpressive sregex and stl::list::iterator
From: Richard (codemonkee_at_[hidden])
Date: 2011-09-29 06:02:47
I am trying to use stl::list<boost::xpressive::sregex>, but the following code cannot be complied
sregex rex = boost::xpressive::sregex::compile("hello");
50 std::list<boost::xpressive::sregex>::iterator it;
52 for (it= rxs.begin(); it != rxs.end(); it++)
line 52, "it= rxs.begin()" cannot be complied, it said the no match operator =., what is wrong?
by the way, I cannot use std::vector<boost::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.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net