Fix c++20 deprecation warning in span_body

resolves #1924
This commit is contained in:
Richard Hodges
2020-04-30 08:27:48 +02:00
parent 83fc0018a8
commit a4b5cd8473
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
* Fix c++20 deprecation warning in span_body
--------------------------------------------------------------------------------
Version 291: Version 291:
* Test websocket with use_awaitable * Test websocket with use_awaitable

View File

@ -36,7 +36,9 @@ template<class T>
struct span_body struct span_body
{ {
private: private:
static_assert(std::is_pod<T>::value, static_assert(
std::is_trivial<T>::value &&
std::is_standard_layout<T>::value,
"POD requirements not met"); "POD requirements not met");
public: public: