diff --git a/include/boost/regex/v4/perl_matcher_non_recursive.hpp b/include/boost/regex/v4/perl_matcher_non_recursive.hpp index 93750247..6af90fb7 100644 --- a/include/boost/regex/v4/perl_matcher_non_recursive.hpp +++ b/include/boost/regex/v4/perl_matcher_non_recursive.hpp @@ -956,7 +956,7 @@ bool perl_matcher::match_recursion() // See if we've seen this recursion before at this location, if we have then // we need to prevent infinite recursion: // - for(std::vector >::const_reverse_iterator i = recursion_stack.rbegin(); i != recursion_stack.rend(); ++i) + for(typename std::vector >::const_reverse_iterator i = recursion_stack.rbegin(); i != recursion_stack.rend(); ++i) { if(i->idx == static_cast(static_cast(pstate)->alt.p)->index) { diff --git a/include/boost/regex/v4/perl_matcher_recursive.hpp b/include/boost/regex/v4/perl_matcher_recursive.hpp index ef163d75..023e62dd 100644 --- a/include/boost/regex/v4/perl_matcher_recursive.hpp +++ b/include/boost/regex/v4/perl_matcher_recursive.hpp @@ -904,7 +904,7 @@ bool perl_matcher::match_recursion() // See if we've seen this recursion before at this location, if we have then // we need to prevent infinite recursion: // - for(std::vector >::const_reverse_iterator i = recursion_stack.rbegin(); i != recursion_stack.rend(); ++i) + for(typename std::vector >::const_reverse_iterator i = recursion_stack.rbegin(); i != recursion_stack.rend(); ++i) { if(i->idx == static_cast(static_cast(pstate)->alt.p)->index) {