From 0f292ea85f54b3496fe87e6466acf43b76f57dcd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 14 Feb 2019 10:49:31 -0800 Subject: [PATCH] [iter] Accept iterator, not iterable, in hb_filter()() --- src/hb-iter.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hb-iter.hh b/src/hb-iter.hh index 4bee8ca37..da11d367f 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -312,11 +312,11 @@ struct hb_filter_iter_factory_t { hb_filter_iter_factory_t (Pred&& p, Proj&& f) : p (p), f (f) {} - template - hb_filter_iter_t - operator () (const Iterable &c) const - { return hb_filter_iter_t (c.iter (), p, f); } + template + hb_filter_iter_t + operator () (Iter it) const + { return hb_filter_iter_t (it, p, f); } private: Pred p;