From cb204d6d9c3f2066580e606bcbe54e3383791d5f Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Wed, 12 Apr 2023 09:37:39 -0700 Subject: Replace absl::type_traits_internal::is_trivially_copyable with std::is_trivially_copyable PiperOrigin-RevId: 523724345 Change-Id: Id68c79c3bbb253d892bdef4659ac8a926e023d12 --- absl/base/casts.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'absl/base') diff --git a/absl/base/casts.h b/absl/base/casts.h index b99adb06..d1958885 100644 --- a/absl/base/casts.h +++ b/absl/base/casts.h @@ -149,16 +149,16 @@ using std::bit_cast; #else // defined(__cpp_lib_bit_cast) && __cpp_lib_bit_cast >= 201806L -template ::value && - type_traits_internal::is_trivially_copyable::value +template < + typename Dest, typename Source, + typename std::enable_if::value && + std::is_trivially_copyable::value #if !ABSL_HAVE_BUILTIN(__builtin_bit_cast) - && std::is_default_constructible::value + && std::is_default_constructible::value #endif // !ABSL_HAVE_BUILTIN(__builtin_bit_cast) - , - int>::type = 0> + , + int>::type = 0> #if ABSL_HAVE_BUILTIN(__builtin_bit_cast) inline constexpr Dest bit_cast(const Source& source) { return __builtin_bit_cast(Dest, source); -- cgit v1.2.3