Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48690 - trunk/boost/exception
From: emil_at_[hidden]
Date: 2008-09-09 19:44:16


Author: emildotchevski
Date: 2008-09-09 19:44:16 EDT (Tue, 09 Sep 2008)
New Revision: 48690
URL: http://svn.boost.org/trac/boost/changeset/48690

Log:
Workaround for the HP-UX_ia64_aCC failures.
Text files modified:
   trunk/boost/exception/exception.hpp | 18 +++++++++++++++++-
   1 files changed, 17 insertions(+), 1 deletions(-)

Modified: trunk/boost/exception/exception.hpp
==============================================================================
--- trunk/boost/exception/exception.hpp (original)
+++ trunk/boost/exception/exception.hpp 2008-09-09 19:44:16 EDT (Tue, 09 Sep 2008)
@@ -184,7 +184,23 @@
             {
             }
 
- virtual ~exception() throw() = 0;
+#ifdef __HP_aCC
+ //On HP aCC, this protected copy constructor prevents throwing boost::exception.
+ //On all other platforms, the same effect is achieved by the pure virtual destructor.
+ exception( exception const & x ) throw():
+ data_(x.data_),
+ throw_function_(x.throw_function_),
+ throw_file_(x.throw_file_),
+ throw_line_(x.throw_line_)
+ {
+ }
+#endif
+
+ virtual ~exception() throw()
+#ifndef __HP_aCC
+ = 0 //Workaround for HP aCC, =0 incorrectly leads to link errors.
+#endif
+ ;
 
         private:
 


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