mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-23 21:25:49 +00:00
fix algorithm: one_of, one_of_equal ( empty range input )
This commit is contained in:
parent
117ab52460
commit
ce4a65b2ad
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue