diff options
author | Lee Clagett <code@leeclagett.com> | 2017-12-19 20:30:02 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2018-01-18 02:26:19 -0500 |
commit | 951716146fc288b60604ba1b93b34032f37a47d8 (patch) | |
tree | 8341cfc1d7bc693072c3b89842140d78be85765f /contrib/epee/include/span.h | |
parent | Merge pull request #3091 (diff) | |
download | monero-951716146fc288b60604ba1b93b34032f37a47d8.tar.xz |
Remove is_pod trait, and replace with is_standard_layout requirement
Diffstat (limited to '')
-rw-r--r-- | contrib/epee/include/span.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/span.h b/contrib/epee/include/span.h index 5660c09d1..ba44f8f79 100644 --- a/contrib/epee/include/span.h +++ b/contrib/epee/include/span.h @@ -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>`. |