Opened 11 years ago

Closed 11 years ago

#6039 closed Bugs (fixed)

compile error at define BOOST_NO_EXCEPTIONS

Reported by: RRobar Owned by: Emil Dotchevski
Milestone: To Be Determined Component: exception
Version: Boost 1.46.1 Severity: Problem
Keywords: boost_no_exceptions Cc:

Description

We try to upgrade from 1.33.0 to 1.41.1. When we define the BOOST_NO_EXCEPTIONS macro, we get a compile error. I found the following problem:

Our application includes the boost/thread.hpp, this includes the boost/thread/future.hpp, this includes the boost/exception_ptr.hpp and this includes the boost/exception/detail/exception_ptr.hpp.

In the final exception_ptr.hpp, at the line 402 there is a function call. The call of "current_exception_diagnostic_information()" function. The problem is in the boost/exception/diagnostic_information.hpp file. Because, the BOOST_NO_EXCEPTIONS is defined, there is no definition of the "current_exception_diagnostic_information()".

Best Regards, Robar, Robert

Change History (3)

comment:1 by anonymous, 11 years ago

Keywords: boost_no_exceptions added
Milestone: To Be Determined

comment:2 by RRobar, 11 years ago

I resolved the problem. I changed the <boost/thred.hpp> include to <boost/thread/thread.hpp>.

http://boost.2283326.n4.nabble.com/boost-threads-without-exceptions-td3024048.html#a3024652

Best Regards, Robert

comment:3 by anonymous, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.