From 9aa18a159daf519fd05572dd23e1b738dc7da8b1 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 23 May 2003 11:31:00 +0000 Subject: [PATCH] Added como warning suppression. [SVN r18508] --- include/boost/regex/v4/perl_matcher_common.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/regex/v4/perl_matcher_common.hpp b/include/boost/regex/v4/perl_matcher_common.hpp index 4a950467..41dd2394 100644 --- a/include/boost/regex/v4/perl_matcher_common.hpp +++ b/include/boost/regex/v4/perl_matcher_common.hpp @@ -612,7 +612,7 @@ bool perl_matcher::find_restart_any // run out of characters, try a null match if possible: if(access::first(re)->can_be_null) return match_prefix(); - return false; + break; } // now try and obtain a match: if(match_prefix()) @@ -647,7 +647,7 @@ bool perl_matcher::find_restart_wor while((position != last) && !traits_inst.is_class(*position, traits::char_class_word)) ++position; if(position == last) - return false; + break; if(access::can_start(*position, _map, (unsigned char)mask_any) ) { @@ -655,7 +655,7 @@ bool perl_matcher::find_restart_wor return true; } if(position == last) - return false; + break; } while(true); return false; #ifdef BOOST_MSVC