From dbda6314da08f8b63c668fa436f6715d55b317c3 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 13 Nov 2014 11:02:36 +0000 Subject: [PATCH] Initialize all members in initializer list, see https://github.com/boostorg/regex/pull/6 --- include/boost/regex/v4/perl_matcher.hpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/include/boost/regex/v4/perl_matcher.hpp b/include/boost/regex/v4/perl_matcher.hpp index 0a37a84a..b7b3b58e 100644 --- a/include/boost/regex/v4/perl_matcher.hpp +++ b/include/boost/regex/v4/perl_matcher.hpp @@ -254,13 +254,8 @@ class repeater_count std::size_t count; // the number of iterations so far BidiIterator start_pos; // where the last repeat started public: - repeater_count(repeater_count** s) - { - stack = s; - next = 0; - state_id = -1; - count = 0; - } + repeater_count(repeater_count** s) : stack(s), next(0), state_id(-1), count(0), start_pos() {} + repeater_count(int i, repeater_count** s, BidiIterator start) : start_pos(start) {