From 61ea1b566aa9bff23dfe6bba850153f9ce0de48b Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 18 Jul 2002 11:07:46 +0000 Subject: [PATCH] Added workaround for gcc2.91 bug [SVN r14513] --- include/boost/regex/detail/regex_match.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/regex/detail/regex_match.hpp b/include/boost/regex/detail/regex_match.hpp index da97ecce..6f2f25fa 100644 --- a/include/boost/regex/detail/regex_match.hpp +++ b/include/boost/regex/detail/regex_match.hpp @@ -500,7 +500,11 @@ bool query_match_aux(iterator first, case syntax_element_word_boundary: { // prev and this character must be opposites: +#if defined(BOOST_REGEX_USE_C_LOCALE) && defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ < 95) + bool b = traits::is_class(*first, traits::char_class_word); +#else bool b = traits_inst.is_class(*first, traits::char_class_word); +#endif if((first == temp_match[0].first) && ((flags & match_prev_avail) == 0)) { if(flags & match_not_bow)