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
@@ -19,6 +19,7 @@
#include <boost/asio/handler_invoke_hook.hpp>
#include <boost/assert.hpp>
#include <boost/optional.hpp>
#include <boost/throw_exception.hpp>
#include <limits>
#include <memory>
@@ -721,7 +722,7 @@ read_frame(frame_info& fi, DynamicBuffer& buffer)
error_code ec;
read_frame(fi, buffer, ec);
if(ec)
throw system_error{ec};
BOOST_THROW_EXCEPTION(system_error{ec});
}
template<class NextLayer>
@@ -1136,7 +1137,7 @@ read(opcode& op, DynamicBuffer& buffer)
error_code ec;
read(op, buffer, ec);
if(ec)
throw system_error{ec};
BOOST_THROW_EXCEPTION(system_error{ec});
}
template<class NextLayer>