From 15504c263fef0697f6283ce6235137ff3c97a8cb Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 12 Oct 2005 14:33:21 +0000 Subject: [PATCH] Fix bug that allows some partial matches to go undetected. [SVN r31302] --- include/boost/regex/v4/perl_matcher_non_recursive.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/regex/v4/perl_matcher_non_recursive.hpp b/include/boost/regex/v4/perl_matcher_non_recursive.hpp index dc6f1d09..791c5d93 100644 --- a/include/boost/regex/v4/perl_matcher_non_recursive.hpp +++ b/include/boost/regex/v4/perl_matcher_non_recursive.hpp @@ -164,7 +164,10 @@ bool perl_matcher::match_all_states() raise_error(traits_inst, regex_constants::error_space); if((m_match_flags & match_partial) && (position == last) && (position != search_base)) m_has_partial_match = true; - if(false == unwind(false)) + bool successful_unwind = unwind(false); + if((m_match_flags & match_partial) && (position == last) && (position != search_base)) + m_has_partial_match = true; + if(false == successful_unwind) return m_recursive_result; } }