forked from boostorg/regex
Fix iterator comparisons so legacy compilers (sun and VC6) can handle them
This commit is contained in:
1 parent
5456180bb3
commit
22aedd996c
2 files changed
+2
-2
No files matched your search
@@ -1001,7 +1001,7 @@ bool perl_matcher<BidiIterator, Allocator, traits>::match_recursion()
|
||||
// See if we've seen this recursion before at this location, if we have then
|
||||
// we need to prevent infinite recursion:
|
||||
//
|
||||
for(typename std::vector<recursion_info<results_type> >::const_reverse_iterator i = recursion_stack.rbegin(); i != recursion_stack.rend(); ++i)
|
||||
for(typename std::vector<recursion_info<results_type> >::reverse_iterator i = recursion_stack.rbegin(); i != recursion_stack.rend(); ++i)
|
||||
{
|
||||
if(i->idx == static_cast<const re_brace*>(static_cast<const re_jump*>(pstate)->alt.p)->index)
|
||||
{
|
||||
|
||||
@@ -904,7 +904,7 @@ bool perl_matcher<BidiIterator, Allocator, traits>::match_recursion()
|
||||
// See if we've seen this recursion before at this location, if we have then
|
||||
// we need to prevent infinite recursion:
|
||||
//
|
||||
for(typename std::vector<recursion_info<results_type> >::const_reverse_iterator i = recursion_stack.rbegin(); i != recursion_stack.rend(); ++i)
|
||||
for(typename std::vector<recursion_info<results_type> >::reverse_iterator i = recursion_stack.rbegin(); i != recursion_stack.rend(); ++i)
|
||||
{
|
||||
if(i->idx == static_cast<const re_brace*>(static_cast<const re_jump*>(pstate)->alt.p)->index)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user