From 43ecf63e147ef07b04bcee6789bfc02058caeb3a Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Thu, 2 Jul 2020 20:10:50 +1000 Subject: [PATCH] Fix BOOST_ASIO_NO_EXCEPTIONS support. --- include/boost/asio/execution/detail/as_invocable.hpp | 2 +- include/boost/asio/execution/detail/as_operation.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)