Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59436 - trunk/boost/exception/detail
From: emil_at_[hidden]
Date: 2010-02-03 03:24:03


Author: emildotchevski
Date: 2010-02-03 03:24:01 EST (Wed, 03 Feb 2010)
New Revision: 59436
URL: http://svn.boost.org/trac/boost/changeset/59436

Log:
trying workaround for failures at Sandia-gcc-4.4.3_0x
Text files modified:
   trunk/boost/exception/detail/exception_ptr.hpp | 33 ++++++++++++++++-----------------
   1 files changed, 16 insertions(+), 17 deletions(-)

Modified: trunk/boost/exception/detail/exception_ptr.hpp
==============================================================================
--- trunk/boost/exception/detail/exception_ptr.hpp (original)
+++ trunk/boost/exception/detail/exception_ptr.hpp 2010-02-03 03:24:01 EST (Wed, 03 Feb 2010)
@@ -30,8 +30,23 @@
     {
     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 @@
         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 )


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk