Merge branch 'feature/std--is_pod-is-deprecated-in-C++20' into development

This commit is contained in:
John Wellbelove 2020-07-20 10:52:34 +01:00
commit 64aeef0911

View File

@ -1063,11 +1063,12 @@ namespace etl
//***************************************************************************
/// is_pod
///\ingroup type_traits
template <typename T> struct is_pod : std::is_pod<T> {};
template <typename T>
struct is_pod : std::integral_constant<bool, std::is_standard_layout<T>::value && std::is_trivial<T>::value> {};
#if ETL_CPP17_SUPPORTED
template <typename T>
inline constexpr bool is_pod_v = std::is_pod_v<T>;
inline constexpr bool is_pod_v = std::is_standard_layout_v<T> && std::is_trivial_v<T>;
#endif
#if !defined(ARDUINO) && ETL_NOT_USING_STLPORT