Opened 10 years ago
Last modified 10 years ago
#7149 reopened Bugs
system failed to compile with BOOST_NO_EXCEPTIONS defined when -fno-exceptions is NOT used
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | system |
Version: | Boost 1.51.0 | Severity: | Problem |
Keywords: | Cc: | viboes |
Description
This no longer compiles on mac osx GCC 4 with BOOST_NO_EXCEPTIONS defined but without -fno-exceptions. BOOST_NO_EXCEPTIONS can be used to simply disable exception handling in boost not necessarily to flag that exception handling is disabled at the compiler level:
http://www.boost.org/doc/libs/1_36_0/libs/utility/throw_exception.html
BOOST_NO_EXCEPTION can be used to supply a custom exception handler.
Wrapping the try block on line 136 on system/error_code.cpp with #ifndef BOOST_NO_EXCEPTIONS fixes this.
See ticket #2098
Attachments (2)
Change History (6)
comment:1 by , 10 years ago
Component: | None → system |
---|---|
Owner: | set to |
by , 10 years ago
Attachment: | 7149.patch added |
---|
comment:3 by , 10 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:4 by , 10 years ago
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
Note:
See TracTickets
for help on using tickets.
This pacth works for me.