Beast/v70
Was looking at test coverage to find untested parts to increase coverage.
So i discovered this:
try
{
body_.resize(len + n);
}
catch(std::length_error const&)
{
ec = error::buffer_overflow;
return;
}
ec.assign(0, ec.category());
There you catch std::length_error only.
What about the exceptions thrown by corresponding Allocator?
e.g. std::bad_alloc
http://en.cppreference.com/w/cpp/string/basic_string/resize