aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/span.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-01-27 17:26:58 -0800
committerRiccardo Spagni <ric@spagni.net>2018-01-27 17:26:58 -0800
commit76a6a794f99e7539e2e2d0a298b25d18197af727 (patch)
treeeb6c3cac6d2418985505498dafc70fbc11de301c /contrib/epee/include/span.h
parentMerge pull request #3151 (diff)
parentRemove is_pod trait, and replace with is_standard_layout requirement (diff)
downloadmonero-76a6a794f99e7539e2e2d0a298b25d18197af727.tar.xz
Merge pull request #2969
95171614 Remove is_pod trait, and replace with is_standard_layout requirement (Lee Clagett)
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 4273828d1..452cc088f 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>`.