[SmallSet] Avoid using is_trivially_XXX<>::value which is C++17

llvm-svn: 334888
This commit is contained in:
Florian Hahn 2018-06-16 12:50:32 +00:00
parent 18714d6a7f
commit 9d47ce784d
1 changed files with 5 additions and 5 deletions

View File

@ -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");
}