diff --git a/src/hb-iter.hh b/src/hb-iter.hh index 215b19023..7b975e6b6 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -48,11 +48,9 @@ * Base classes for iterators. */ -template struct hb_iter_of_t {}; - /* Base class for all iterators. */ template -struct hb_iter_t : hb_iter_of_t +struct hb_iter_t { typedef Iter iter_t; typedef Item item_t; @@ -163,11 +161,11 @@ struct hb_is_iterable { enum { value = _hb_is_iterable::value }; } /* hb_is_iterator() / hb_is_sorted_iterator() */ -template char _hb_is_iterator (...) { return 0; }; -template int _hb_is_iterator (hb_iter_of_t *) { return 0; }; -template int _hb_is_iterator (hb_iter_of_t *) { return 0; }; -template int _hb_is_iterator (hb_iter_of_t *) { return 0; }; -template int _hb_is_iterator (hb_iter_of_t *) { return 0; }; +template char _hb_is_iterator (...) { return 0; }; +template int _hb_is_iterator (hb_iter_t *) { return 0; }; +template int _hb_is_iterator (hb_iter_t *) { return 0; }; +template int _hb_is_iterator (hb_iter_t *) { return 0; }; +template int _hb_is_iterator (hb_iter_t *) { return 0; }; static_assert (sizeof (char) != sizeof (int), ""); template struct hb_is_iterator { enum {