From a4b5cd8473d65fc1cdb3b440f989c3a355d301d9 Mon Sep 17 00:00:00 2001 From: Richard Hodges Date: Thu, 30 Apr 2020 08:27:48 +0200 Subject: [PATCH] Fix c++20 deprecation warning in span_body resolves #1924 --- CHANGELOG.md | 4 ++++ include/boost/beast/http/span_body.hpp | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0207d36b..11bf9e09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +* Fix c++20 deprecation warning in span_body + +-------------------------------------------------------------------------------- + Version 291: * Test websocket with use_awaitable diff --git a/include/boost/beast/http/span_body.hpp b/include/boost/beast/http/span_body.hpp index a0d32f84..72b9ef5d 100644 --- a/include/boost/beast/http/span_body.hpp +++ b/include/boost/beast/http/span_body.hpp @@ -36,8 +36,10 @@ template struct span_body { private: - static_assert(std::is_pod::value, - "POD requirements not met"); + static_assert( + std::is_trivial::value && + std::is_standard_layout::value, + "POD requirements not met"); public: /** The type of container used for the body