From 1ed2045e0741034c57582726e83b904815d2718c Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Thu, 30 Sep 2021 19:28:36 -0700 Subject: [PATCH] Made std_exception_ptr_wrapper compatible with boost::throw_exception. --- include/boost/exception/detail/exception_ptr.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/exception/detail/exception_ptr.hpp b/include/boost/exception/detail/exception_ptr.hpp index 57ff58f..c3b97b9 100644 --- a/include/boost/exception/detail/exception_ptr.hpp +++ b/include/boost/exception/detail/exception_ptr.hpp @@ -45,7 +45,8 @@ boost { #ifndef BOOST_NO_CXX11_HDR_EXCEPTION struct - std_exception_ptr_wrapper + std_exception_ptr_wrapper: + std::exception { std::exception_ptr p; explicit std_exception_ptr_wrapper( std::exception_ptr const & ptr ) BOOST_NOEXCEPT: @@ -60,6 +61,7 @@ boost #endif }; shared_ptr + inline wrap_exception_ptr( std::exception_ptr const & e ) { exception_detail::clone_base const & base =