diff --git a/include/string b/include/string index f5d548965..b213cd411 100644 --- a/include/string +++ b/include/string @@ -651,7 +651,7 @@ public: typedef typename __alloc_traits::pointer pointer; typedef typename __alloc_traits::const_pointer const_pointer; - static_assert(is_pod::value, "Character type of basic_string must be a POD"); + static_assert(is_trivial::value, "Character type of basic_string must be trivial"); static_assert((is_same<_CharT, typename traits_type::char_type>::value), "traits_type::char_type must be the same type as CharT"); static_assert((is_same::value), diff --git a/include/string_view b/include/string_view index 72cf816e8..fd8c3790b 100644 --- a/include/string_view +++ b/include/string_view @@ -208,7 +208,7 @@ public: typedef ptrdiff_t difference_type; static _LIBCPP_CONSTEXPR const size_type npos = -1; // size_type(-1); - static_assert(is_pod::value, "Character type of basic_string_view must be a POD"); + static_assert(is_trivial::value, "Character type of basic_string_view must be trivial"); static_assert((is_same<_CharT, typename traits_type::char_type>::value), "traits_type::char_type must be the same type as CharT");