
6 Dec
2006
6 Dec
'06
2:47 a.m.
I often use Boost.RegEx as follows: boost::cregex_iterator i = (pBegin, pEnd, /*Stuff here/*); boost::cregex_iterator e; for ( ; i!=e; ++i) { // Stuff here } While there is nothing wrong with this I'd like to be able to use BOOST_FOREACH to do it. For this to work there would need to be a container that contains the iterators instead of just creating them directly.