diff --git a/include/boost/asio/execution/detail/as_invocable.hpp b/include/boost/asio/execution/detail/as_invocable.hpp index 5547ed0e..28ead3f6 100644 --- a/include/boost/asio/execution/detail/as_invocable.hpp +++ b/include/boost/asio/execution/detail/as_invocable.hpp @@ -63,8 +63,8 @@ struct as_invocable #endif // !defined(BOOST_ASIO_NO_EXCEPTIONS) execution::set_value(BOOST_ASIO_MOVE_CAST(Receiver)(*receiver_)); receiver_ = 0; - } #if !defined(BOOST_ASIO_NO_EXCEPTIONS) + } catch (...) { #if defined(BOOST_ASIO_HAS_STD_EXCEPTION_PTR) diff --git a/include/boost/asio/execution/detail/as_operation.hpp b/include/boost/asio/execution/detail/as_operation.hpp index f875c5c4..4ac1b4dc 100644 --- a/include/boost/asio/execution/detail/as_operation.hpp +++ b/include/boost/asio/execution/detail/as_operation.hpp @@ -63,8 +63,8 @@ struct as_operation , ref_count_ #endif // !defined(BOOST_ASIO_HAS_MOVE) )); - } #if !defined(BOOST_ASIO_NO_EXCEPTIONS) + } catch (...) { #if defined(BOOST_ASIO_HAS_STD_EXCEPTION_PTR)