diff --git a/include/boost/regex/v4/perl_matcher.hpp b/include/boost/regex/v4/perl_matcher.hpp index 7d4ef764..2f906458 100644 --- a/include/boost/regex/v4/perl_matcher.hpp +++ b/include/boost/regex/v4/perl_matcher.hpp @@ -377,9 +377,9 @@ private: repeater_count rep_obj; // table of functions to match states: - static const matcher_proc_type s_match_vtable[27]; + static const matcher_proc_type s_match_vtable[]; // table of functions to search for matching attempt start: - static const matcher_proc_type s_find_vtable[7]; + static const matcher_proc_type s_find_vtable[]; #ifdef BOOST_REGEX_NON_RECURSIVE @@ -424,7 +424,7 @@ private: // how many memory blocks have we used up?: unsigned used_block_count; // table of pointers to unwind proceedures: - static const unwind_proc_type s_unwind_table[14]; + static const unwind_proc_type s_unwind_table[]; #endif // these operations aren't allowed, so are declared private: diff --git a/include/boost/regex/v4/perl_matcher_common.hpp b/include/boost/regex/v4/perl_matcher_common.hpp index c3ce7d7b..3e4e9ffd 100644 --- a/include/boost/regex/v4/perl_matcher_common.hpp +++ b/include/boost/regex/v4/perl_matcher_common.hpp @@ -774,7 +774,7 @@ bool perl_matcher::find_restart_lit template typename perl_matcher::matcher_proc_type const -perl_matcher::s_match_vtable[27] = +perl_matcher::s_match_vtable[] = { (&perl_matcher::match_startmark), &perl_matcher::match_endmark, @@ -817,7 +817,7 @@ perl_matcher::s_match_vtable[27] = template typename perl_matcher::matcher_proc_type const -perl_matcher::s_find_vtable[7] = +perl_matcher::s_find_vtable[] = { &perl_matcher::find_restart_any, &perl_matcher::find_restart_word, diff --git a/include/boost/regex/v4/perl_matcher_non_recursive.hpp b/include/boost/regex/v4/perl_matcher_non_recursive.hpp index 258212ac..7f90f362 100644 --- a/include/boost/regex/v4/perl_matcher_non_recursive.hpp +++ b/include/boost/regex/v4/perl_matcher_non_recursive.hpp @@ -1184,7 +1184,7 @@ bool perl_matcher::unwind_non_greed template typename perl_matcher::unwind_proc_type const -perl_matcher::s_unwind_table[14] = +perl_matcher::s_unwind_table[] = { &perl_matcher::unwind_end, &perl_matcher::unwind_paren, diff --git a/include/boost/regex/v4/states.hpp b/include/boost/regex/v4/states.hpp index eaec0b56..1b0cbc1a 100644 --- a/include/boost/regex/v4/states.hpp +++ b/include/boost/regex/v4/states.hpp @@ -110,7 +110,6 @@ enum syntax_element_type syntax_element_char_rep = syntax_element_dot_rep + 1, syntax_element_short_set_rep = syntax_element_char_rep + 1, syntax_element_long_set_rep = syntax_element_short_set_rep + 1, - syntax_element_count = syntax_element_long_set_rep +1 }; #ifdef BOOST_REGEX_DEBUG