File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 {};
3030using __cxx_contention_t _LIBCPP_NODEBUG = int32_t ;
3131
3232template <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
3636using __cxx_contention_t _LIBCPP_NODEBUG = int64_t ;
3737
3838template <class _Tp >
3939struct __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__)
You can’t perform that action at this time.
0 commit comments