File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -347,9 +347,17 @@ typedef boost::beast::websocket::error ws_error_t;
347347typedef boost::beast::http::error http_error_t ;
348348typedef boost::json::error json_error_t ;
349349
350+ inline boost_code to_errc_code (boost_errc_t ec) NOEXCEPT
351+ {
352+ // boost::system::generic_category();
353+ return boost::system::errc::make_error_code (ec);
354+ }
355+
350356inline boost_code to_asio_basic_code (asio_basic_error_t ec) NOEXCEPT
351357{
358+ BC_PUSH_WARNING (NO_THROW_IN_NOEXCEPT)
352359 return { ec, boost::asio::error::get_system_category () };
360+ BC_POP_WARNING ()
353361}
354362
355363inline boost_code to_http_code (http_error_t ec) NOEXCEPT
@@ -382,12 +390,6 @@ inline boost_code to_json_code(json_error_t ec) NOEXCEPT
382390 return boost::json::make_error_code (ec);
383391}
384392
385- inline boost_code to_errc_code (boost_errc_t ec) NOEXCEPT
386- {
387- // boost::system::generic_category();
388- return boost::system::errc::make_error_code (ec);
389- }
390-
391393// / Shortcircuit common boost code mapping.
392394BCT_API bool asio_is_canceled (const boost_code& ec) NOEXCEPT;
393395
You can’t perform that action at this time.
0 commit comments