File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ struct IsTriviallyConstructible {
49
49
#if defined(_LIBCPP_VERSION) || SWIFT_COMPILER_IS_MSVC
50
50
// libc++ and MSVC implement is_trivially_constructible.
51
51
static const bool value = std::is_trivially_constructible<T>::value;
52
- #elif __has_keyword(__is_trivially_constructible)
52
+ #elif __has_feature(is_trivially_constructible) || __has_keyword(__is_trivially_constructible)
53
53
static const bool value = __is_trivially_constructible(T);
54
54
#elif __has_feature(has_trivial_constructor) || __GNUC__ >= 5
55
55
static const bool value = __has_trivial_constructor(T);
@@ -63,7 +63,7 @@ struct IsTriviallyDestructible {
63
63
#if defined(_LIBCPP_VERSION) || SWIFT_COMPILER_IS_MSVC
64
64
// libc++ and MSVC implement is_trivially_destructible.
65
65
static const bool value = std::is_trivially_destructible<T>::value;
66
- #elif __has_keyword(__is_trivially_destructible)
66
+ #elif __has_feature(is_trivially_destructible) || __has_keyword(__is_trivially_destructible)
67
67
static const bool value = __is_trivially_destructible(T);
68
68
#elif __has_feature(has_trivial_destructor) || __GNUC__ >= 5
69
69
static const bool value = __has_trivial_destructor(T);
You can’t perform that action at this time.
0 commit comments