[set] Adjust grow_vector condition

This commit is contained in:
Behdad Esfahbod committed 2022-05-19 15:43:15 -06:00
1 parent 0623aa598b
commit 544ffb913e
1 file changed
+2 -4
+2 -4
View File
@@ -231,8 +231,7 @@ struct hb_vector_t : std::conditional<sorted, hb_vector_t<Type, false>, hb_empty
}
template <typename T = Type,
hb_enable_if (hb_is_trivially_constructible(T) ||
!std::is_default_constructible<T>::value)>
hb_enable_if (hb_is_trivially_constructible(T))>
void
grow_vector (unsigned size)
{
@@ -240,8 +239,7 @@ struct hb_vector_t : std::conditional<sorted, hb_vector_t<Type, false>, hb_empty
length = size;
}
template <typename T = Type,
hb_enable_if (!hb_is_trivially_constructible(T) &&
std::is_default_constructible<T>::value)>
hb_enable_if (!hb_is_trivially_constructible(T))>
void
grow_vector (unsigned size)
{