Fix iterator comparisons so legacy compilers (sun and VC6) can handle them

This commit is contained in:
John Maddock
2017-03-01 11:33:28 +00:00
parent 5456180bb3
commit 22aedd996c
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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)
{