From 90a8527bbfee167e8b00f9518b548c0487ec942e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 19 Oct 2023 20:05:06 +0300 Subject: [PATCH] Fix is_trivially_copyable again --- include/boost/endian/detail/is_trivially_copyable.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/boost/endian/detail/is_trivially_copyable.hpp b/include/boost/endian/detail/is_trivially_copyable.hpp index b15d4a6..a0ada2e 100644 --- a/include/boost/endian/detail/is_trivially_copyable.hpp +++ b/include/boost/endian/detail/is_trivially_copyable.hpp @@ -1,8 +1,7 @@ #ifndef BOOST_ENDIAN_DETAIL_IS_TRIVIALLY_COPYABLE_HPP_INCLUDED #define BOOST_ENDIAN_DETAIL_IS_TRIVIALLY_COPYABLE_HPP_INCLUDED -// Copyright 2019 Peter Dimov -// +// Copyright 2019, 2023 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt @@ -19,7 +18,7 @@ namespace detail #if defined( BOOST_LIBSTDCXX_VERSION ) && BOOST_LIBSTDCXX_VERSION < 50000 template struct is_trivially_copyable: std::integral_constant::value && std::has_trivial_copy_assign::value && std::has_trivial_destructor::value> {}; + __has_trivial_copy(T) && __has_trivial_assign(T) && __has_trivial_destructor(T)> {}; #else