Fixed C++ Builder 5 support,

Fixed support for bidirectional iterators,
Fixed enum declaration in states.hpp.


[SVN r18874]
This commit is contained in:
John Maddock
2003-06-27 11:12:47 +00:00
parent 6f9ba7a289
commit 4a851cf958
5 changed files with 12 additions and 9 deletions

View File

@ -271,8 +271,8 @@ void BOOST_REGEX_CALL match_results<RandomAccessIterator, Allocator>::maybe_assi
if(base1 < base2) return;
if(base2 < base1) break;
len1 = boost::re_detail::distance(p1->first, p1->second);
len2 = boost::re_detail::distance(p2->first, p2->second);
len1 = boost::re_detail::distance((RandomAccessIterator)p1->first, (RandomAccessIterator)p1->second);
len2 = boost::re_detail::distance((RandomAccessIterator)p2->first, (RandomAccessIterator)p2->second);
if((len1 != len2) || ((p1->matched == false) && (p2->matched == true)))
break;
if((p1->matched == true) && (p2->matched == false))