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