regex fixes for updated Dinkum library

[SVN r8161]
This commit is contained in:
John Maddock
2000-11-09 13:03:41 +00:00
parent 4378b06e43
commit 8700307cf5
3 changed files with 10 additions and 5 deletions

View File

@ -1240,7 +1240,8 @@ unsigned int BOOST_RE_CALL reg_expression<charT, traits, Allocator>::set_express
register traits_size_type c;
register re_detail::re_syntax_base* dat;
unsigned rep_min, rep_max;
unsigned rep_min = 0;
unsigned rep_max = 0;
//
// set up header:

View File

@ -618,10 +618,13 @@ typedef unsigned long jm_uintfast32_t;
#define BOOST_RE_NEED_ALLOC
#define BOOST_RE_STL_DONE
#define BOOST_RE_USE_FACET(l, type) std::use_facet(l, (type*)0, true)
#define BOOST_RE_HAS_FACET(l, type) std::has_facet(l, (type*)0)
#ifndef _CPPLIB_VER
#define BOOST_RE_USE_FACET(l, type) std::use_facet(l, (type*)0, true)
#define BOOST_RE_HAS_FACET(l, type) std::has_facet(l, (type*)0)
#else
#define BOOST_RE_USE_FACET(l, type) std::use_facet(l, (type*)0)
#define BOOST_RE_HAS_FACET(l, type) std::has_facet(l, (type*)0)
#endif
#else

View File

@ -118,6 +118,7 @@ std::size_t regex_split(OutputIterator out,
*out = std::basic_string<charT, Traits1, Alloc1>((ci_t)last, (ci_t)s.end());
++out;
last = s.end();
--max_split;
}
//
// delete from the string everything that has been processed so far: