[iter] Accept iterator, not iterable, in hb_map()()
This commit is contained in:
parent
16cc313dcd
commit
345bfbb207
|
@ -272,11 +272,11 @@ struct hb_map_iter_factory_t
|
||||||
{
|
{
|
||||||
hb_map_iter_factory_t (Proj&& f) : f (f) {}
|
hb_map_iter_factory_t (Proj&& f) : f (f) {}
|
||||||
|
|
||||||
template <typename Iterable,
|
template <typename Iter,
|
||||||
hb_enable_if (hb_is_iterable (Iterable))>
|
hb_enable_if (hb_is_iterator (Iter))>
|
||||||
hb_map_iter_t<hb_iter_t (Iterable), Proj>
|
hb_map_iter_t<Iter, Proj>
|
||||||
operator () (const Iterable &c) const
|
operator () (Iter it) const
|
||||||
{ return hb_map_iter_t<hb_iter_t (Iterable), Proj> (c.iter (), f); }
|
{ return hb_map_iter_t<Iter, Proj> (it, f); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Proj f;
|
Proj f;
|
||||||
|
|
Loading…
Reference in New Issue