mirror of
https://github.com/boostorg/endian.git
synced 2025-07-30 12:37:24 +02:00
Fix is_trivially_copyable again
This commit is contained in:
@ -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<class T> struct is_trivially_copyable: std::integral_constant<bool,
|
||||
std::has_trivial_copy_constructor<T>::value && std::has_trivial_copy_assign<T>::value && std::has_trivial_destructor<T>::value> {};
|
||||
__has_trivial_copy(T) && __has_trivial_assign(T) && __has_trivial_destructor(T)> {};
|
||||
|
||||
#else
|
||||
|
||||
|
Reference in New Issue
Block a user