Skip to content

Commit 4a1442d

Browse files
committed
standard layout types
1 parent 41b9b34 commit 4a1442d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libcxx/include/__atomic/contention_t.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <__config>
1414
#include <__type_traits/enable_if.h>
1515
#include <__type_traits/integral_constant.h>
16-
#include <__type_traits/is_integral.h>
16+
#include <__type_traits/is_standard_layout.h>
1717
#include <cstddef>
1818
#include <cstdint>
1919

@@ -30,14 +30,14 @@ struct __is_atomic_wait_native_type : false_type {};
3030
using __cxx_contention_t _LIBCPP_NODEBUG = int32_t;
3131

3232
template <class _Tp>
33-
struct __is_atomic_wait_native_type<_Tp, __enable_if_t<is_integral<_Tp>::value && sizeof(_Tp) == 4> > : true_type {};
33+
struct __is_atomic_wait_native_type<_Tp, __enable_if_t<is_standard_layout<_Tp>::value && sizeof(_Tp) == 4> > : true_type {};
3434

3535
#else
3636
using __cxx_contention_t _LIBCPP_NODEBUG = int64_t;
3737

3838
template <class _Tp>
3939
struct __is_atomic_wait_native_type<_Tp,
40-
__enable_if_t<is_integral<_Tp>::value && (sizeof(_Tp) == 4 || sizeof(_Tp) == 8)> >
40+
__enable_if_t<is_standard_layout<_Tp>::value && (sizeof(_Tp) == 4 || sizeof(_Tp) == 8)> >
4141
: true_type {};
4242

4343
#endif // __linux__ || (_AIX && !__64BIT__)

0 commit comments

Comments
 (0)