From dc90d077495532d673bace596730a4c683c43c20 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 7 Apr 2004 11:04:06 +0000 Subject: [PATCH] Added fix for grepping for POSIX style matches. [SVN r22621] --- include/boost/regex/v4/perl_matcher_common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/regex/v4/perl_matcher_common.hpp b/include/boost/regex/v4/perl_matcher_common.hpp index b8978ffa..76423689 100644 --- a/include/boost/regex/v4/perl_matcher_common.hpp +++ b/include/boost/regex/v4/perl_matcher_common.hpp @@ -205,7 +205,7 @@ bool perl_matcher::find_imp() else { // start again: - search_base = position = (*m_presult)[0].second; + search_base = position = m_result[0].second; // If last match was null and match_not_null was not set then increment // our start position, otherwise we go into an infinite loop: if(((m_match_flags & match_not_null) == 0) && (m_presult->length() == 0))