fix algorithm: one_of, one_of_equal ( empty range input )

This commit is contained in:
bolero-MURAKAMI 2013-08-17 18:41:58 +09:00
parent 117ab52460
commit ce4a65b2ad
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ namespace sprout {
std::random_access_iterator_tag*
)
{
return first == last ? true
return first == last ? false
: sprout::detail::one_of_impl_ra(first, last, pred, sprout::distance(first, last) / 2)
;
}

View file

@ -67,7 +67,7 @@ namespace sprout {
std::random_access_iterator_tag*
)
{
return first == last ? true
return first == last ? false
: sprout::detail::one_of_equal_impl_ra(first, last, value, sprout::distance(first, last) / 2)
;
}