mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
std::is_pod is deprecated in C++20 (#241)
This commit is contained in:
parent
2cf00a0ba4
commit
14d7b300b0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user