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