type_traits.h: Support isPodLike for _MSC_VER >= 1900 (#925)

This commit is contained in:
Tex Riddell 2017-12-14 14:41:00 -08:00 коммит произвёл GitHub
Родитель be1e6b130e
Коммит b8628000aa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -31,7 +31,8 @@ struct isPodLike {
// std::is_trivially_copyable is available in libc++ with clang, libstdc++
// that comes with GCC 5.
#if (__has_feature(is_trivially_copyable) && defined(_LIBCPP_VERSION)) || \
(defined(__GNUC__) && __GNUC__ >= 5)
(defined(__GNUC__) && __GNUC__ >= 5) || \
(_MSC_VER >= 1900) // HLSL Change
// If the compiler supports the is_trivially_copyable trait use it, as it
// matches the definition of isPodLike closely.
static const bool value = std::is_trivially_copyable<T>::value;