diff --git a/src/hb-array.hh b/src/hb-array.hh index 62bee7d84..a4dce4b27 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -190,7 +190,7 @@ enum hb_bfind_not_found_t template struct hb_sorted_array_t : - hb_iter_t, Type>, + hb_sorted_iter_t, Type>, hb_array_t, hb_iter_mixin_t, Type> { diff --git a/src/hb-iter.hh b/src/hb-iter.hh index 8e4a8a906..2ea77890a 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -89,6 +89,17 @@ struct hb_iter_t void operator = (const hb_iter_t &o) {} }; +/* Base class for sorted iterators. Does not enforce anything. + * Just for class taxonomy and requirements. */ +template +struct hb_sorted_iter_t : hb_iter_t +{ + protected: + hb_sorted_iter_t () {} + hb_sorted_iter_t (const hb_sorted_iter_t &o) {} + void operator = (const hb_sorted_iter_t &o) {} +}; + /* Mixin to fill in what the subclass doesn't provide. */ template struct hb_iter_mixin_t