mirror of
https://github.com/boostorg/regex.git
synced 2025-07-16 13:52:17 +02:00
Fixed incorrect iterator use - assumed random access iterator in one place rather than bidirectional.
[SVN r12768]
This commit is contained in:
@ -1271,7 +1271,7 @@ unsigned int reg_grep2(Predicate foo, I first, I last, const reg_expression<char
|
|||||||
{
|
{
|
||||||
_skip_and_dec(clines, last_line, first, base, j);
|
_skip_and_dec(clines, last_line, first, base, j);
|
||||||
restart = first;
|
restart = first;
|
||||||
restart += len;
|
std::advance(restart, len);
|
||||||
m.set_first(first);
|
m.set_first(first);
|
||||||
m.set_second(restart);
|
m.set_second(restart);
|
||||||
m.set_line(clines, last_line);
|
m.set_line(clines, last_line);
|
||||||
|
Reference in New Issue
Block a user