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)
&& (
sprout::distance(first1, last1) == 0
first1 == last1
|| sprout::detail::equal_impl_ra(
first1, last1, first2, pred,
sprout::distance(first1, last1) / 2