diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 286b79f73..43e21d498 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -316,6 +316,8 @@ struct hb_sorted_vector_t : hb_vector_t hb_sorted_vector_t () : hb_vector_t () {} hb_sorted_vector_t (std::initializer_list lst) : hb_vector_t (lst) {} hb_sorted_vector_t (hb_sorted_vector_t& o) : hb_vector_t (o) {} + friend void swap (hb_sorted_vector_t& a, hb_sorted_vector_t& b) + { hb_swap ((hb_vector_t&) (a), (hb_vector_t&) (b)); } hb_sorted_array_t< Type> as_array () { return hb_sorted_array (this->arrayZ, this->length); } hb_sorted_array_t as_array () const { return hb_sorted_array (this->arrayZ, this->length); }