Use std::is_trivial not std::is_standard_layout for checking memset'able

This commit is contained in:
baldurk
2017-11-27 21:20:42 +00:00
parent 05da25a2d7
commit 47f2997ede
+1 -1
View File
@@ -89,7 +89,7 @@ struct null_terminator<char>
inline static void fixup(char *elems, size_t count) { elems[count] = 0; }
};
template <typename T, bool isStd = std::is_standard_layout<T>::value>
template <typename T, bool isStd = std::is_trivial<T>::value>
struct ItemHelper
{
static void initRange(T *first, int32_t count)