mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 02:18:46 +00:00
[SmallSet] Avoid using is_trivially_XXX<>::value which is C++17
llvm-svn: 334888
This commit is contained in:
parent
ea374da437
commit
c9aad1c77a
@ -51,11 +51,11 @@ public:
|
||||
SmallSetIterator(SetIterTy SetIter) : SetIter(SetIter), isSmall(false) {
|
||||
// Use static_assert here, as the SmallSetIterator type is incomplete in the
|
||||
// class scope.
|
||||
static_assert(std::is_trivially_destructible<SelfTy>::value &&
|
||||
std::is_trivially_copy_constructible<SelfTy>::value &&
|
||||
std::is_trivially_copy_assignable<SelfTy>::value &&
|
||||
std::is_move_constructible<SelfTy>::value &&
|
||||
std::is_trivially_move_assignable<SelfTy>::value,
|
||||
static_assert(std::is_trivially_destructible<SelfTy>() &&
|
||||
std::is_trivially_copy_constructible<SelfTy>() &&
|
||||
std::is_trivially_copy_assignable<SelfTy>() &&
|
||||
std::is_move_constructible<SelfTy>() &&
|
||||
std::is_trivially_move_assignable<SelfTy>(),
|
||||
"SelfTy needs to be trivial copy and move constructors and "
|
||||
"assignments");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user