trying workaround for failures at Sandia-gcc-4.4.3_0x

[SVN r59436]
This commit is contained in:
Emil Dotchevski
2010-02-03 08:24:01 +00:00
parent 3013e991f1
commit 2bbd6ae7b5

View File

@ -30,8 +30,23 @@ boost
{
typedef shared_ptr<exception_detail::clone_base const> exception_ptr;
exception_ptr current_exception();
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
typedef error_info<struct tag_original_exception_type,std::type_info const *> original_exception_type;
@ -363,22 +378,6 @@ boost
return ret;
}
template <class T>
inline
exception_ptr
copy_exception( T const & e )
{
try
{
throw enable_current_exception(e);
}
catch(
... )
{
return current_exception();
}
}
inline
void
rethrow_exception( exception_ptr const & p )