Disable operator<< for buffer_body

fix #363
This commit is contained in:
Vinnie Falco
2017-05-30 16:16:20 -07:00
parent e5cfe9c11f
commit 7435d3c65f
2 changed files with 17 additions and 0 deletions

View File

@ -1,5 +1,7 @@
Version 47
* Disable operator<< for buffer_body
API Changes:
* Refactor treatment of request-method

View File

@ -120,6 +120,21 @@ struct buffer_body
#endif
};
#if ! BEAST_DOXYGEN
template<bool isRequest, class Fields,
bool isDeferred, class ConstBufferSequence>
std::ostream&
operator<<(std::ostream& os, message<
isRequest, buffer_body<isDeferred,
ConstBufferSequence>, Fields> const& msg)
{
static_assert(sizeof(ConstBufferSequence) == -1,
"operator<< is not supported for buffer_body");
}
#endif
} // http
} // beast