mirror of
https://github.com/boostorg/regex.git
synced 2025-07-29 12:07:28 +02:00
Fix -analyse errors from VC8.
Merge a couple of changes from the release branch. [SVN r31987]
This commit is contained in:
@ -142,7 +142,11 @@ struct character_pointer_range
|
||||
}
|
||||
bool operator == (const character_pointer_range& r)const
|
||||
{
|
||||
return ((p2 - p1) == (r.p2 - r.p1)) && std::equal(p1, p2, r.p1);
|
||||
// Not only do we check that the ranges are of equal size before
|
||||
// calling std::equal, but there is no other algorithm available:
|
||||
// not even a non-standard MS one. So forward to unchecked_equal
|
||||
// in the MS case.
|
||||
return ((p2 - p1) == (r.p2 - r.p1)) && re_detail::equal(p1, p2, r.p1);
|
||||
}
|
||||
};
|
||||
template <class charT>
|
||||
|
Reference in New Issue
Block a user