Boost C++ Libraries: Ticket #5608: Cannot compile using <boost/thread.hpp> on QNX 6.5.0: error: overriding 'virtual boost::exception::~exception() throw ()' https://svn.boost.org/trac10/ticket/5608 <p> I'm using qnx 6.5.0 with qcc: # qcc -V cc: targets available in /usr/qnx650/host/qnx6/x86/etc/qcc: </p> <blockquote> <p> 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 </p> </blockquote> <p> when I try to compile a file where I included &lt;boost/thread.hpp&gt; 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 ()' </p> <p> By explicitly specifying a throw list for the destructor of bad_alloc_ the problem can be solve. e.g., in exception_ptr.hpp </p> <blockquote> <p> struct bad_alloc_ : </p> <blockquote> <p> boost::exception, std::bad_alloc </p> <blockquote> <p> { </p> <blockquote> <p> ~bad_alloc_() throw() {} </p> </blockquote> <p> }; </p> </blockquote> </blockquote> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5608 Trac 1.4.3 viboes Sun, 04 Dec 2011 09:53:30 GMT owner, component changed; cc set https://svn.boost.org/trac10/ticket/5608#comment:1 https://svn.boost.org/trac10/ticket/5608#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">Emil Dotchevski</span> </li> <li><strong>component</strong> <span class="trac-field-old">thread</span> → <span class="trac-field-new">exception</span> </li> </ul> <p> I don't see any wrong here for Boost.Thread and the suggested modification is already in Trunk. </p> <p> I will prefer the Boost.Exception maintainers close it if they think the issue is solved. </p> Ticket Emil Dotchevski Tue, 19 Jun 2012 23:44:22 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5608#comment:2 https://svn.boost.org/trac10/ticket/5608#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Not sure when this was fixed but it is fixed. </p> Ticket