--- src/3rdparty/gn/base/template_util.h.orig 2023-11-09 11:32:20 UTC +++ src/3rdparty/gn/base/template_util.h @@ -112,24 +112,8 @@ struct is_iterator -struct is_trivially_copyable { -// TODO(danakj): Remove this when android builders are all using a newer version -// of gcc, or the android ndk is updated to a newer libc++ that does this for -// us. -#if _GNUC_VER >= 501 - static constexpr bool value = __is_trivially_copyable(T); -#else - static constexpr bool value = - __has_trivial_copy(T) && __has_trivial_destructor(T); -#endif -}; -#else template using is_trivially_copyable = std::is_trivially_copyable; -#endif #if defined(__GNUC__) && !defined(__clang__) && __GNUC__ <= 7 // Workaround for g++7 and earlier family.