aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/span.h
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2017-12-19 20:30:02 -0500
committerLee Clagett <code@leeclagett.com>2018-01-18 02:26:19 -0500
commit951716146fc288b60604ba1b93b34032f37a47d8 (patch)
tree8341cfc1d7bc693072c3b89842140d78be85765f /contrib/epee/include/span.h
parentMerge pull request #3091 (diff)
downloadmonero-951716146fc288b60604ba1b93b34032f37a47d8.tar.xz
Remove is_pod trait, and replace with is_standard_layout requirement
Diffstat (limited to 'contrib/epee/include/span.h')
-rw-r--r--contrib/epee/include/span.h2
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>`.