From 1480e33dc6196caf726d6c4ba4a5b3f97b8a02ac Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 9 Nov 2017 18:13:16 +0000 Subject: [PATCH] Regex: Fix recursive algorithm builds. --- include/boost/regex/v4/perl_matcher.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/regex/v4/perl_matcher.hpp b/include/boost/regex/v4/perl_matcher.hpp index 1182b775..a696e5d9 100644 --- a/include/boost/regex/v4/perl_matcher.hpp +++ b/include/boost/regex/v4/perl_matcher.hpp @@ -378,7 +378,10 @@ public: BidiIterator l_base) : m_result(what), base(first), last(end), position(first), backstop(l_base), re(e), traits_inst(e.get_traits()), - m_independent(false), next_count(&rep_obj), rep_obj(&next_count), m_recursions(0) + m_independent(false), next_count(&rep_obj), rep_obj(&next_count) +#ifdef BOOST_REGEX_NON_RECURSIVE + , m_recursions(0) +#endif { construct_init(e, f); }