Fixed array bounds so that gcc3 will actually compile the code, it's now seriously unmainable though, still it's the only thing that seems to work...

[SVN r18761]
This commit is contained in:
John Maddock
2003-06-10 11:59:44 +00:00
parent 6dfa7ef86c
commit 13769e4fff
4 changed files with 6 additions and 7 deletions

View File

@ -377,9 +377,9 @@ private:
repeater_count<BidiIterator> rep_obj;
// table of functions to match states:
static const matcher_proc_type s_match_vtable[re_detail::syntax_element_count];
static const matcher_proc_type s_match_vtable[27];
// table of functions to search for matching attempt start:
static const matcher_proc_type s_find_vtable[regbase::restart_count];
static const matcher_proc_type s_find_vtable[7];
#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[re_detail::saved_state_count];
static const unwind_proc_type s_unwind_table[14];
#endif
// these operations aren't allowed, so are declared private:

View File

@ -768,7 +768,7 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::find_restart_lit
template <class BidiIterator, class Allocator, class traits, class Allocator2>
typename perl_matcher<BidiIterator, Allocator, traits, Allocator2>::matcher_proc_type const
perl_matcher<BidiIterator, Allocator, traits, Allocator2>::s_match_vtable[re_detail::syntax_element_count] =
perl_matcher<BidiIterator, Allocator, traits, Allocator2>::s_match_vtable[27] =
{
(&perl_matcher<BidiIterator, Allocator, traits, Allocator2>::match_startmark),
&perl_matcher<BidiIterator, Allocator, traits, Allocator2>::match_endmark,
@ -811,7 +811,7 @@ perl_matcher<BidiIterator, Allocator, traits, Allocator2>::s_match_vtable[re_det
template <class BidiIterator, class Allocator, class traits, class Allocator2>
typename perl_matcher<BidiIterator, Allocator, traits, Allocator2>::matcher_proc_type const
perl_matcher<BidiIterator, Allocator, traits, Allocator2>::s_find_vtable[regbase::restart_count] =
perl_matcher<BidiIterator, Allocator, traits, Allocator2>::s_find_vtable[7] =
{
&perl_matcher<BidiIterator, Allocator, traits, Allocator2>::find_restart_any,
&perl_matcher<BidiIterator, Allocator, traits, Allocator2>::find_restart_word,

View File

@ -1184,7 +1184,7 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::unwind_non_greed
template <class BidiIterator, class Allocator, class traits, class Allocator2>
typename perl_matcher<BidiIterator, Allocator, traits, Allocator2>::unwind_proc_type const
perl_matcher<BidiIterator, Allocator, traits, Allocator2>::s_unwind_table[re_detail::saved_state_count] =
perl_matcher<BidiIterator, Allocator, traits, Allocator2>::s_unwind_table[14] =
{
&perl_matcher<BidiIterator, Allocator, traits, Allocator2>::unwind_end,
&perl_matcher<BidiIterator, Allocator, traits, Allocator2>::unwind_paren,

View File

@ -60,7 +60,6 @@
#ifndef BOOST_REGEX_TRAITS_HPP
#include <boost/regex/regex_traits.hpp>
#endif
#include <boost/type_traits/remove_cv.hpp>
#include <boost/scoped_array.hpp>
#ifndef BOOST_REGEX_V4_CHAR_REGEX_TRAITS_HPP