mirror of
https://github.com/monero-project/monero.git
synced 2025-05-07 22:14:59 -04:00
Remove is_pod trait, and replace with is_standard_layout requirement
This commit is contained in:
parent
35d5aa36c9
commit
951716146f
3 changed files with 15 additions and 12 deletions
|
@ -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>`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue