From 544ffb913ea515fae77f26714a1c7c620cdab0ed Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 19 May 2022 14:50:12 -0600 Subject: [PATCH] [set] Adjust grow_vector condition --- src/hb-vector.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 0f386fc41..9cd67c32b 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -231,8 +231,7 @@ struct hb_vector_t : std::conditional, hb_empty } template ::value)> + hb_enable_if (hb_is_trivially_constructible(T))> void grow_vector (unsigned size) { @@ -240,8 +239,7 @@ struct hb_vector_t : std::conditional, hb_empty length = size; } template ::value)> + hb_enable_if (!hb_is_trivially_constructible(T))> void grow_vector (unsigned size) {