Skip to content

Commit 1480e33

Browse files
committed
Regex: Fix recursive algorithm builds.
1 parent e94f079 commit 1480e33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

include/boost/regex/v4/perl_matcher.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,10 @@ class perl_matcher
378378
BidiIterator l_base)
379379
: m_result(what), base(first), last(end),
380380
position(first), backstop(l_base), re(e), traits_inst(e.get_traits()),
381-
m_independent(false), next_count(&rep_obj), rep_obj(&next_count), m_recursions(0)
381+
m_independent(false), next_count(&rep_obj), rep_obj(&next_count)
382+
#ifdef BOOST_REGEX_NON_RECURSIVE
383+
, m_recursions(0)
384+
#endif
382385
{
383386
construct_init(e, f);
384387
}

0 commit comments

Comments
 (0)