Remove is_pod trait, and replace with is_standard_layout requirement

This commit is contained in:
Lee Clagett 2017-12-19 20:30:02 -05:00
parent 35d5aa36c9
commit 951716146f
3 changed files with 15 additions and 12 deletions

View file

@ -108,7 +108,7 @@ namespace epee
template<typename T>
constexpr bool has_padding() noexcept
{
return !std::is_pod<T>::value || alignof(T) != 1;
return !std::is_standard_layout<T>() || alignof(T) != 1;
}
//! \return Cast data from `src` as `span<const std::uint8_t>`.