Now that poly_int_pod has been removed and other changes mostly to use
{quick,safe}_grow_cleared instead of {quick,safe}_grow for types with
non-trivial default construction, we can enable even the last static
assertion. From now on, {quick,safe}_grow can only be used with
trivially default constructible types.
2023-09-30 Jakub Jelinek <jakub@redhat.com>
* vec.h (quick_grow): Uncomment static_assert.
{
gcc_checking_assert (length () <= len && len <= m_vecpfx.m_alloc);
#if GCC_VERSION >= 5000
-// static_assert (std::is_trivially_default_constructible <T>::value, "");
+ static_assert (std::is_trivially_default_constructible <T>::value, "");
#endif
m_vecpfx.m_num = len;
}