mirror of
https://github.com/boostorg/exception.git
synced 2025-07-21 00:12:07 +02:00
trying workaround for failures at Sandia-gcc-4.4.3_0x
[SVN r59436]
This commit is contained in:
@ -30,8 +30,23 @@ boost
|
|||||||
{
|
{
|
||||||
typedef shared_ptr<exception_detail::clone_base const> exception_ptr;
|
typedef shared_ptr<exception_detail::clone_base const> exception_ptr;
|
||||||
|
|
||||||
|
exception_ptr current_exception();
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
exception_ptr copy_exception( T const & );
|
inline
|
||||||
|
exception_ptr
|
||||||
|
copy_exception( T const & e )
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
throw enable_current_exception(e);
|
||||||
|
}
|
||||||
|
catch(
|
||||||
|
... )
|
||||||
|
{
|
||||||
|
return current_exception();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef BOOST_NO_RTTI
|
#ifndef BOOST_NO_RTTI
|
||||||
typedef error_info<struct tag_original_exception_type,std::type_info const *> original_exception_type;
|
typedef error_info<struct tag_original_exception_type,std::type_info const *> original_exception_type;
|
||||||
@ -363,22 +378,6 @@ boost
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
|
||||||
inline
|
|
||||||
exception_ptr
|
|
||||||
copy_exception( T const & e )
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
throw enable_current_exception(e);
|
|
||||||
}
|
|
||||||
catch(
|
|
||||||
... )
|
|
||||||
{
|
|
||||||
return current_exception();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
inline
|
inline
|
||||||
void
|
void
|
||||||
rethrow_exception( exception_ptr const & p )
|
rethrow_exception( exception_ptr const & p )
|
||||||
|
Reference in New Issue
Block a user