Opened 12 years ago
Closed 11 years ago
#5076 closed Bugs (fixed)
numeric/conversion/converter_policies.hpp won't build with gcc -fno-exceptions
Reported by: | Owned by: | Douglas Gregor | |
---|---|---|---|
Milestone: | To Be Determined | Component: | numeric |
Version: | Boost 1.39.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Using gcc -fno-exceptions:
In file included from /home/markusl/work/unicorn/1/libs/manspan/Ibspanfuncs.cpp:17:
/home/markusl/work/unicorn/1/include/x86_64_bali/boost/numeric/conversion/converter_policies.hpp: In member function 'void boost::numeric::def_overflow_handler::operator()(boost::numeric::range_check_result)':
/home/markusl/work/unicorn/1/include/x86_64_bali/boost/numeric/conversion/converter_policies.hpp:162: error: exception handling disabled, use -fexceptions to enable
The attached patch fixes the problem.
Attachments (1)
Change History (4)
by , 12 years ago
Attachment: | patch-converter_policies_hpp added |
---|
comment:1 by , 11 years ago
I've run into this error as well. Is there a compelling reason for not using a boost exception here?
comment:2 by , 11 years ago
Likewise, I'm hitting this problem in fedora boost-devel-1.44-8-fc14.x86_64, please fix this issue please.
Patch that fixes the problem