Author: marshall Date: Sun Jan 21 16:17:48 2018 New Revision: 323071 URL: http://llvm.org/viewvc/llvm-project?rev=323071&view=rev Log: Change a static_assert to check for is_trivial instead of is_pod, as is mandated by P0767.
Modified: libcxx/trunk/include/string libcxx/trunk/include/string_view Modified: libcxx/trunk/include/string URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/string?rev=323071&r1=323070&r2=323071&view=diff ============================================================================== --- libcxx/trunk/include/string (original) +++ libcxx/trunk/include/string Sun Jan 21 16:17:48 2018 @@ -651,7 +651,7 @@ public: typedef typename __alloc_traits::pointer pointer; typedef typename __alloc_traits::const_pointer const_pointer; - static_assert(is_pod<value_type>::value, "Character type of basic_string must be a POD"); + static_assert(is_trivial<value_type>::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<typename allocator_type::value_type, value_type>::value), Modified: libcxx/trunk/include/string_view URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/string_view?rev=323071&r1=323070&r2=323071&view=diff ============================================================================== --- libcxx/trunk/include/string_view (original) +++ libcxx/trunk/include/string_view Sun Jan 21 16:17:48 2018 @@ -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_type>::value, "Character type of basic_string_view must be a POD"); + static_assert(is_trivial<value_type>::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"); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits