related tdf#152305 writerfilter: avoid comment-related exceptions
[LibreOffice.git] / external / pdfium / abseil-trivial.patch
blobfa91fa6bbba98e5edc497a3c37e20f035156aa10
1 --- third_party/abseil-cpp/absl/meta/type_traits.h
2 +++ third_party/abseil-cpp/absl/meta/type_traits.h
3 @@ -501,27 +501,7 @@ struct is_trivially_move_assignable
4 // operation that is not trivial. `is_trivially_copy_assignable<T>` is simply
5 // `is_trivially_assignable<T&, const T&>`.
6 template <typename T>
7 -struct is_trivially_copy_assignable
8 -#ifdef ABSL_HAVE_STD_IS_TRIVIALLY_ASSIGNABLE
9 - : std::is_trivially_copy_assignable<T> {
10 -#else
11 - : std::integral_constant<
12 - bool, __has_trivial_assign(typename std::remove_reference<T>::type) &&
13 - absl::is_copy_assignable<T>::value> {
14 -#endif
15 -#ifdef ABSL_HAVE_STD_IS_TRIVIALLY_ASSIGNABLE
16 - private:
17 - static constexpr bool compliant =
18 - std::is_trivially_copy_assignable<T>::value ==
19 - is_trivially_copy_assignable::value;
20 - static_assert(compliant || std::is_trivially_copy_assignable<T>::value,
21 - "Not compliant with std::is_trivially_copy_assignable; "
22 - "Standard: false, Implementation: true");
23 - static_assert(compliant || !std::is_trivially_copy_assignable<T>::value,
24 - "Not compliant with std::is_trivially_copy_assignable; "
25 - "Standard: true, Implementation: false");
26 -#endif // ABSL_HAVE_STD_IS_TRIVIALLY_ASSIGNABLE
27 -};
28 +using is_trivially_copy_assignable = std::is_trivially_copy_assignable<T>;
30 #if defined(__cpp_lib_remove_cvref) && __cpp_lib_remove_cvref >= 201711L
31 template <typename T>