File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ template<typename T>
44
44
struct IsTriviallyConstructible {
45
45
#if defined(_LIBCPP_VERSION) || SWIFT_COMPILER_IS_MSVC
46
46
// libc++ and MSVC implement is_trivially_constructible.
47
- static const bool value = std::is_trivially_constructible<T>::value;
48
- #elif __has_feature(__is_trivially_constructible) || __GNUC__ >= 5
47
+ static const bool value = std::is_trivially_constructible<T>::value;
48
+ #elif __has_feature(is_trivially_constructible)
49
49
static const bool value = __is_trivially_constructible(T);
50
+ #elif __has_feature(has_trivial_constructor) || __GNUC__ >= 5
51
+ static const bool value = __has_trivial_constructor(T);
50
52
#else
51
53
# error "Not implemented"
52
54
#endif
@@ -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;
60
- #elif __has_feature(__is_trivially_destructible) || __GNUC__ >= 5
62
+ #elif __has_feature(is_trivially_destructible)
61
63
static const bool value = __is_trivially_destructible(T);
64
+ #elif __has_feature(has_trivial_destructor) || __GNUC__ >= 5
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