From aaddfaa57a841726a8b49653af3f8b702831da1b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 21 Dec 2018 16:04:38 -0500 Subject: [PATCH] [iter] Make hb_fill() take collection type, not iter Starting to get the hang of when take which. --- src/test-iter.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test-iter.cc b/src/test-iter.cc index f54bf0ae3..73af4e4c2 100644 --- a/src/test-iter.cc +++ b/src/test-iter.cc @@ -60,10 +60,10 @@ struct some_array_t }; -template inline void -hb_fill (hb_iter_t &i, const V &v) +template inline void +hb_fill (const C& c, const V &v) { - for (; i; i++) + for (typename C::iter_t i (c); i; i++) hb_assign (*i, v); }