diff --git a/src/hb-iter.hh b/src/hb-iter.hh index da11d367f..fe279dd96 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -371,12 +371,12 @@ struct hb_sink_t { hb_sink_t (Sink&& s) : s (s) {} - template + template void - operator () (const Iterable &c) const + operator () (Iter it) const { - for (auto it = c.iter (); it; ++it) + for (; it; ++it) s << *it; } diff --git a/src/test-iter.cc b/src/test-iter.cc index cd94be845..ffd08bb83 100644 --- a/src/test-iter.cc +++ b/src/test-iter.cc @@ -145,6 +145,7 @@ main (int argc, char **argv) | hb_filter () | hb_filter (hb_bool) | hb_filter (hb_bool, hb_identity) + | hb_sink (st) ; t << 1;