[set] Adjust grow_vector condition
This commit is contained in:
parent
0623aa598b
commit
544ffb913e
|
@ -231,8 +231,7 @@ struct hb_vector_t : std::conditional<sorted, hb_vector_t<Type, false>, hb_empty
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T = Type,
|
template <typename T = Type,
|
||||||
hb_enable_if (hb_is_trivially_constructible(T) ||
|
hb_enable_if (hb_is_trivially_constructible(T))>
|
||||||
!std::is_default_constructible<T>::value)>
|
|
||||||
void
|
void
|
||||||
grow_vector (unsigned size)
|
grow_vector (unsigned size)
|
||||||
{
|
{
|
||||||
|
@ -240,8 +239,7 @@ struct hb_vector_t : std::conditional<sorted, hb_vector_t<Type, false>, hb_empty
|
||||||
length = size;
|
length = size;
|
||||||
}
|
}
|
||||||
template <typename T = Type,
|
template <typename T = Type,
|
||||||
hb_enable_if (!hb_is_trivially_constructible(T) &&
|
hb_enable_if (!hb_is_trivially_constructible(T))>
|
||||||
std::is_default_constructible<T>::value)>
|
|
||||||
void
|
void
|
||||||
grow_vector (unsigned size)
|
grow_vector (unsigned size)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue