BREAKING CHANGE: change mark_count to do what's documented (and what the std does).

See https://svn.boost.org/trac/boost/ticket/9227.
This commit is contained in:
jzmaddock
2013-12-14 17:43:24 +00:00
parent e5bbcac3da
commit 937cd366c5
6 changed files with 10 additions and 12 deletions

View File

@ -119,7 +119,7 @@ std::size_t regex_split(OutputIterator out,
// if there is still input left, do a final push as long as max_split
// is not exhausted, and we're not splitting sub-expressions rather
// than whitespace:
if(max_split && (last != s.end()) && (e.mark_count() == 1))
if(max_split && (last != s.end()) && (e.mark_count() == 0))
{
*out = std::basic_string<charT, Traits1, Alloc1>((ci_t)last, (ci_t)s.end());
++out;