diff --git a/CHANGELOG.md b/CHANGELOG.md index 88131743..e9bf96e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Version 71: * Call prepare_payload in HTTP example * Check trailers in test * Fix buffer overflow handling for string_body and mutable_body +* Concept check in basic_dynamic_body WebSockets: diff --git a/include/beast/http/dynamic_body.hpp b/include/beast/http/dynamic_body.hpp index cc4fa8ee..43206e17 100644 --- a/include/beast/http/dynamic_body.hpp +++ b/include/beast/http/dynamic_body.hpp @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -26,6 +27,9 @@ namespace http { template struct basic_dynamic_body { + static_assert(is_dynamic_buffer::value, + "DynamicBuffer requirements not met"); + /// The type of the body member when used in a message. using value_type = DynamicBuffer;