File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ struct IsTriviallyConstructible {
45
45
#if defined(_LIBCPP_VERSION) || SWIFT_COMPILER_IS_MSVC
46
46
// libc++ and MSVC implement is_trivially_constructible.
47
47
static const bool value = std::is_trivially_constructible<T>::value;
48
+ #elif __has_feature(is_trivially_constructible)
49
+ static const bool value = __is_trivially_constructible(T);
48
50
#elif __has_feature(has_trivial_constructor) || __GNUC__ >= 5
49
51
static const bool value = __has_trivial_constructor(T);
50
52
#else
@@ -57,8 +59,10 @@ struct IsTriviallyDestructible {
57
59
#if defined(_LIBCPP_VERSION) || SWIFT_COMPILER_IS_MSVC
58
60
// libc++ and MSVC implement is_trivially_destructible.
59
61
static const bool value = std::is_trivially_destructible<T>::value;
62
+ #elif __has_feature(is_trivially_destructible)
63
+ static const bool value = __is_trivially_destructible(T);
60
64
#elif __has_feature(has_trivial_destructor) || __GNUC__ >= 5
61
- static const bool value = __has_trivial_destructor(T);
65
+ static const bool value = __has_trivial_destructor(T);
62
66
#else
63
67
# error "Not implemented"
64
68
#endif
You can’t perform that action at this time.
0 commit comments