Add BEAST_EXPECT, replace calls to expect

This commit is contained in:
Vinnie Falco
2016-07-25 19:50:36 -04:00
committed by Nik Bougalis
parent 1ff972fbd3
commit e39316882e
86 changed files with 2466 additions and 2545 deletions

View File

@@ -197,13 +197,13 @@ public:
try
{
auto const n = boost::asio::read_until (s, b, '\n');
if (expect (n == match.size()))
if (BEAST_EXPECT(n == match.size()))
{
std::string got;
got.resize (n);
boost::asio::buffer_copy (boost::asio::buffer (
&got[0], n), b.data());
return expect (got == match);
return BEAST_EXPECT(got == match);
}
}
catch (std::length_error const& e)