diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 0d98bd03e..b4175c55e 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -89,6 +89,8 @@ struct hb_vector_t return arrayZ()[i]; } + explicit_operator bool () const { return len; } + hb_array_t as_array () { return hb_array (arrayZ(), len); } hb_array_t as_array () const