Skip to content

Commit dbda631

Browse files
author
jzmaddock
committed
Initialize all members in initializer list, see #6
1 parent ddd4820 commit dbda631

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

include/boost/regex/v4/perl_matcher.hpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,8 @@ class repeater_count
254254
std::size_t count; // the number of iterations so far
255255
BidiIterator start_pos; // where the last repeat started
256256
public:
257-
repeater_count(repeater_count** s)
258-
{
259-
stack = s;
260-
next = 0;
261-
state_id = -1;
262-
count = 0;
263-
}
257+
repeater_count(repeater_count** s) : stack(s), next(0), state_id(-1), count(0), start_pos() {}
258+
264259
repeater_count(int i, repeater_count** s, BidiIterator start)
265260
: start_pos(start)
266261
{

0 commit comments

Comments
 (0)