Merge pull request #2969

95171614 Remove is_pod trait, and replace with is_standard_layout requirement (Lee Clagett)
This commit is contained in:
Riccardo Spagni 2018-01-27 17:26:58 -08:00
commit 76a6a794f9
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
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>`.