Skip to content

Commit 78cf805

Browse files
committed
Style, delint.
1 parent 53c1546 commit 78cf805

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

include/bitcoin/network/error.hpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,17 @@ typedef boost::beast::websocket::error ws_error_t;
347347
typedef boost::beast::http::error http_error_t;
348348
typedef 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+
350356
inline 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

355363
inline 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.
392394
BCT_API bool asio_is_canceled(const boost_code& ec) NOEXCEPT;
393395

0 commit comments

Comments
 (0)