Use BOOST_THROW_EXCEPTION

fix #370
This commit is contained in:
Vinnie Falco committed 2017-05-24 12:36:07 -07:00
1 parent e76281867d
commit bf0145da67
31 files changed
+174 -156

No files matched your search

+2 -2
View File
@@ -61,8 +61,8 @@ private:
{
if(content_length >
(std::numeric_limits<std::size_t>::max)())
throw std::length_error{
"Content-Length overflow"};
BOOST_THROW_EXCEPTION(std::length_error{
"Content-Length overflow"});
body_.reserve(static_cast<
std::size_t>(content_length));
}