From 51fe53f437eb5ebe606be2ffff7dcc4b4d0c5575 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 19 Mar 2003 12:19:14 +0000 Subject: [PATCH] Fixed bug that effect some searches [SVN r18003] --- include/boost/regex/v3/regex_compile.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/regex/v3/regex_compile.hpp b/include/boost/regex/v3/regex_compile.hpp index 5059b5f9..78d098c1 100644 --- a/include/boost/regex/v3/regex_compile.hpp +++ b/include/boost/regex/v3/regex_compile.hpp @@ -2068,7 +2068,7 @@ unsigned int BOOST_REGEX_CALL reg_expression::fixup_le case re_detail::syntax_element_rep: if((len == 0) && (1 == fixup_leading_rep(dat->next.p, static_cast(dat)->alt.p) )) { - static_cast(dat)->leading = true; + static_cast(dat)->leading = leading_lit; return len; } return len; @@ -2121,3 +2121,4 @@ void BOOST_REGEX_CALL reg_expression::fail(unsigned in +