From a1db718dcc6bfb57c2a67d97326357b7eaa0a78f Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Tue, 9 Sep 2008 23:44:16 +0000 Subject: [PATCH] Workaround for the HP-UX_ia64_aCC failures. [SVN r48690] --- include/boost/exception/exception.hpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index c6a8fbd..3d5383d 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -184,7 +184,23 @@ boost { } - 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: