From b039b4ea18ef752d0c1684b3f715ce493b778060 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Fri, 16 Dec 2022 16:14:39 -0800 Subject: [PATCH] Issue #49 --- include/boost/exception/detail/exception_ptr.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/exception/detail/exception_ptr.hpp b/include/boost/exception/detail/exception_ptr.hpp index 7b0fc41..cdfc3be 100644 --- a/include/boost/exception/detail/exception_ptr.hpp +++ b/include/boost/exception/detail/exception_ptr.hpp @@ -64,8 +64,7 @@ boost inline wrap_exception_ptr( std::exception_ptr const & e ) { - exception_detail::clone_base const & base = - boost::enable_current_exception(std_exception_ptr_wrapper(std::current_exception())); + exception_detail::clone_base const & base = boost::enable_current_exception(std_exception_ptr_wrapper(e)); return shared_ptr(base.clone()); } #endif