forked from boostorg/regex
Added extra iterator based tests
[SVN r22385]
This commit is contained in:
@ -88,6 +88,15 @@ int main()
|
||||
r.assign(c_exp, c_exp+1);
|
||||
r.assign(c_exp, c_exp+1, boost::regex::perl);
|
||||
#endif
|
||||
//
|
||||
//check iterators work with std lib algorithms:
|
||||
//
|
||||
boost::cregex_iterator ri, rj;
|
||||
std::distance(ri, rj);
|
||||
std::advance(ri, 0);
|
||||
boost::cregex_token_iterator rk, rm;
|
||||
std::distance(rk, rm);
|
||||
std::advance(rk, 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user