Concept check in basic_dynamic_body

fix #750
This commit is contained in:
Vinnie Falco
2017-07-02 07:29:25 -07:00
parent ebfc3f4537
commit fcc83e6a19
2 changed files with 5 additions and 0 deletions

View File

@ -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:

View File

@ -10,6 +10,7 @@
#include <beast/config.hpp>
#include <beast/core/multi_buffer.hpp>
#include <beast/core/type_traits.hpp>
#include <beast/http/error.hpp>
#include <beast/http/message.hpp>
#include <boost/optional.hpp>
@ -26,6 +27,9 @@ namespace http {
template<class DynamicBuffer>
struct basic_dynamic_body
{
static_assert(is_dynamic_buffer<DynamicBuffer>::value,
"DynamicBuffer requirements not met");
/// The type of the body member when used in a message.
using value_type = DynamicBuffer;