[Boost-bugs] [Boost C++ Libraries] #5608: Cannot compile using <boost/thread.hpp> on QNX 6.5.0: error: overriding 'virtual boost::exception::~exception() throw ()'

Subject: [Boost-bugs] [Boost C++ Libraries] #5608: Cannot compile using <boost/thread.hpp> on QNX 6.5.0: error: overriding 'virtual boost::exception::~exception() throw ()'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-13 21:42:16


#5608: Cannot compile using <boost/thread.hpp> on QNX 6.5.0: error: overriding
'virtual boost::exception::~exception() throw ()'
-----------------------------------------------------+----------------------
 Reporter: Bryan Godbolt <godbolt@…> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
-----------------------------------------------------+----------------------
 I'm using qnx 6.5.0 with qcc:
 # qcc -V
 cc: targets available in /usr/qnx650/host/qnx6/x86/etc/qcc:
         4.4.2,gcc_ntox86_acpp-ne
         4.4.2,gcc_ntox86_gpp
         4.4.2,gcc_ntox86_ecpp
         4.4.2,gcc_ntox86_acpp
         4.4.2,gcc_ntox86_ecpp-ne
         4.4.2,gcc_ntox86 (default)
         4.4.2,gcc_ntox86_cpp
         4.4.2,gcc_ntox86_cpp-ne

 when I try to compile a file where I included <boost/thread.hpp> I get the
 following error:
 /opt/qnx650/target/qnx6/usr/local/include/boost/exception/detail/exception_ptr.hpp:69:
 error: looser throw specifier for 'virtual
 boost::exception_detail::bad_alloc_::~bad_alloc_()'
 /opt/qnx650/target/qnx6/usr/local/include/boost/exception/exception.hpp:255:
 error: overriding 'virtual boost::exception::~exception() throw ()'


 By explicitly specifying a throw list for the destructor of bad_alloc_ the
 problem can be solve. e.g., in exception_ptr.hpp

         struct
         bad_alloc_ :
             boost::exception,
             std::bad_alloc
                 {
                         ~bad_alloc_() throw() {}
                 };

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5608>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC