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

+3 -2
View File
@@ -15,6 +15,7 @@
#include <boost/asio/handler_alloc_hook.hpp>
#include <boost/asio/handler_continuation_hook.hpp>
#include <boost/asio/handler_invoke_hook.hpp>
#include <boost/throw_exception.hpp>
#include <memory>
namespace beast {
@@ -240,7 +241,7 @@ ping(ping_data const& payload)
error_code ec;
ping(payload, ec);
if(ec)
throw system_error{ec};
BOOST_THROW_EXCEPTION(system_error{ec});
}
template<class NextLayer>
@@ -262,7 +263,7 @@ pong(ping_data const& payload)
error_code ec;
pong(payload, ec);
if(ec)
throw system_error{ec};
BOOST_THROW_EXCEPTION(system_error{ec});
}
template<class NextLayer>