mirror of
https://github.com/boostorg/endian.git
synced 2025-07-29 20:17:26 +02:00
Fix is_trivially_copyable
This commit is contained in:
@ -16,14 +16,14 @@ namespace endian
|
||||
namespace detail
|
||||
{
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
|
||||
#if defined( BOOST_LIBSTDCXX_VERSION ) && BOOST_LIBSTDCXX_VERSION < 50000
|
||||
|
||||
using std::is_trivially_copyable;
|
||||
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> {};
|
||||
|
||||
#else
|
||||
|
||||
template<class T> struct is_trivially_copyable: std::integral_constant<bool,
|
||||
std::has_trivial_copy<T>::value && std::has_trivial_assign<T>::value && std::has_trivial_destructor<T>::value> {};
|
||||
using std::is_trivially_copyable;
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user