1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00

fix equal: empty range check

This commit is contained in:
bolero-MURAKAMI 2013-08-27 11:36:37 +09:00
parent e01c9ef98d
commit 2191429a9b

View file

@ -143,7 +143,7 @@ namespace sprout {
{ {
return sprout::distance(first1, last1) == sprout::distance(first2, last2) return sprout::distance(first1, last1) == sprout::distance(first2, last2)
&& ( && (
sprout::distance(first1, last1) == 0 first1 == last1
|| sprout::detail::equal_impl_ra( || sprout::detail::equal_impl_ra(
first1, last1, first2, pred, first1, last1, first2, pred,
sprout::distance(first1, last1) / 2 sprout::distance(first1, last1) / 2