forked from boostorg/exception
Made std_exception_ptr_wrapper compatible with boost::throw_exception.
This commit is contained in:
@ -45,7 +45,8 @@ boost
|
|||||||
{
|
{
|
||||||
#ifndef BOOST_NO_CXX11_HDR_EXCEPTION
|
#ifndef BOOST_NO_CXX11_HDR_EXCEPTION
|
||||||
struct
|
struct
|
||||||
std_exception_ptr_wrapper
|
std_exception_ptr_wrapper:
|
||||||
|
std::exception
|
||||||
{
|
{
|
||||||
std::exception_ptr p;
|
std::exception_ptr p;
|
||||||
explicit std_exception_ptr_wrapper( std::exception_ptr const & ptr ) BOOST_NOEXCEPT:
|
explicit std_exception_ptr_wrapper( std::exception_ptr const & ptr ) BOOST_NOEXCEPT:
|
||||||
@ -60,6 +61,7 @@ boost
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
shared_ptr<exception_detail::clone_base const>
|
shared_ptr<exception_detail::clone_base const>
|
||||||
|
inline
|
||||||
wrap_exception_ptr( std::exception_ptr const & e )
|
wrap_exception_ptr( std::exception_ptr const & e )
|
||||||
{
|
{
|
||||||
exception_detail::clone_base const & base =
|
exception_detail::clone_base const & base =
|
||||||
|
Reference in New Issue
Block a user