Fix c++20 deprecation warning in span_body

resolves #1924
This commit is contained in:
Richard Hodges committed 2020-04-30 16:54:27 +02:00
1 parent 83fc0018a8
commit a4b5cd8473
2 files changed
+8 -2

No files matched your search

+4 -2
View File
@@ -36,8 +36,10 @@ template<class T>
struct span_body
{
private:
static_assert(std::is_pod<T>::value,
"POD requirements not met");
static_assert(
std::is_trivial<T>::value &&
std::is_standard_layout<T>::value,
"POD requirements not met");
public:
/** The type of container used for the body