From 330008445c38aa793a07909d623addfc885464e6 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Mon, 6 Jul 2020 17:09:06 -0700 Subject: [PATCH] make_exception_ptr --- include/boost/exception/detail/exception_ptr.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/exception/detail/exception_ptr.hpp b/include/boost/exception/detail/exception_ptr.hpp index 5830a7f..a9222d9 100644 --- a/include/boost/exception/detail/exception_ptr.hpp +++ b/include/boost/exception/detail/exception_ptr.hpp @@ -92,6 +92,14 @@ boost } } + template + inline + exception_ptr + make_exception_ptr( T const & e ) + { + return copy_exception(e); + } + #ifndef BOOST_NO_RTTI typedef error_info original_exception_type;