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: Markus Laker <markusl@…> 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)

patch-converter_policies_hpp (764 bytes ) - added by Markus Laker <markusl@…> 12 years ago.
Patch that fixes the problem

Download all attachments as: .zip

Change History (4)

by Markus Laker <markusl@…>, 12 years ago

Patch that fixes the problem

comment:1 by anonymous, 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 anonymous, 11 years ago

Likewise, I'm hitting this problem in fedora boost-devel-1.44-8-fc14.x86_64, please fix this issue please.

comment:3 by Antony Polukhin, 11 years ago

Resolution: fixed
Status: newclosed

(In [77234]) Fixes #5731, fixes #5076, fixes #5393, fixes #5800 Now numeric_cast (and lexical_cast) can be compiled with disabled exceptions

Note: See TracTickets for help on using tickets.