[array] Add default copy constructor

MSVC seems to need it.
This commit is contained in:
Behdad Esfahbod 2019-04-03 14:32:15 -07:00
parent d419a9a437
commit 20a73da2c9
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ struct hb_array_t : hb_iter_with_fallback_t<hb_array_t<Type>, Type&>
* Constructors.
*/
hb_array_t () : arrayZ (nullptr), length (0) {}
hb_array_t (const hb_array_t<Type> &o) : arrayZ (o.arrayZ), length (o.length) {}
template <typename U = Type, hb_enable_if (hb_is_const (U))>
hb_array_t (const hb_array_t<hb_remove_const (Type)> &o) : arrayZ (o.arrayZ), length (o.length) {}
hb_array_t (Type *array_, unsigned int length_) : arrayZ (array_), length (length_) {}