From 39f1fb4d17f84f6baffc6a39d2e886660be3f3c1 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 17 Dec 2003 12:05:59 +0000 Subject: [PATCH] Changed name of a local variable to hopefully suppress gcc3.4 error [SVN r21300] --- include/boost/regex/v4/perl_matcher_non_recursive.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/regex/v4/perl_matcher_non_recursive.hpp b/include/boost/regex/v4/perl_matcher_non_recursive.hpp index 957fe79d..d65ba102 100644 --- a/include/boost/regex/v4/perl_matcher_non_recursive.hpp +++ b/include/boost/regex/v4/perl_matcher_non_recursive.hpp @@ -322,18 +322,18 @@ bool perl_matcher::match_startmark( // we need to unpack them, and insert them // back in the right order when we unwind the stack: // - match_results tm(*m_presult); + match_results temp_match(*m_presult); unsigned i; - for(i = 0; i < tm.size(); ++i) + for(i = 0; i < temp_match.size(); ++i) (*m_presult)[i].get_captures().clear(); // match everything else: r = match_all_states(); // now place the stored captures back: - for(i = 0; i < tm.size(); ++i) + for(i = 0; i < temp_match.size(); ++i) { typedef typename sub_match::capture_sequence_type seq; seq& s1 = (*m_presult)[i].get_captures(); - const seq& s2 = tm[i].captures(); + const seq& s2 = temp_match[i].captures(); s1.insert( s1.end(), s2.begin(),