[iter] Accept iterator, not iterable, in hb_filter()()
This commit is contained in:
parent
345bfbb207
commit
0f292ea85f
|
@ -312,11 +312,11 @@ struct hb_filter_iter_factory_t
|
||||||
{
|
{
|
||||||
hb_filter_iter_factory_t (Pred&& p, Proj&& f) : p (p), f (f) {}
|
hb_filter_iter_factory_t (Pred&& p, Proj&& f) : p (p), f (f) {}
|
||||||
|
|
||||||
template <typename Iterable,
|
template <typename Iter,
|
||||||
hb_enable_if (hb_is_iterable (Iterable))>
|
hb_enable_if (hb_is_iterator (Iter))>
|
||||||
hb_filter_iter_t<hb_iter_t (Iterable), Pred, Proj>
|
hb_filter_iter_t<Iter, Pred, Proj>
|
||||||
operator () (const Iterable &c) const
|
operator () (Iter it) const
|
||||||
{ return hb_filter_iter_t<hb_iter_t (Iterable), Pred, Proj> (c.iter (), p, f); }
|
{ return hb_filter_iter_t<Iter, Pred, Proj> (it, p, f); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Pred p;
|
Pred p;
|
||||||
|
|
Loading…
Reference in New Issue