[Boost-bugs] [Boost C++ Libraries] #5800: lexical_cast doesn't compile without exceptions

Subject: [Boost-bugs] [Boost C++ Libraries] #5800: lexical_cast doesn't compile without exceptions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-21 18:59:26


#5800: lexical_cast doesn't compile without exceptions
-------------------------------------+--------------------------------------
 Reporter: mgaunard | Owner: nasonov
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: lexical_cast
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 With GCC, simply including `<boost/lexical_cast.hpp>` is enough to yield
 the following error:

 {{{
 In file included from /media/data/dev/svn/boost-
 trunk/boost/numeric/conversion/converter.hpp:14:0,
                  from /media/data/dev/svn/boost-
 trunk/boost/numeric/conversion/cast.hpp:32,
                  from /media/data/dev/svn/boost-
 trunk/boost/lexical_cast.hpp:40,
 test.cpp:14:
 /media/data/dev/svn/boost-
 trunk/boost/numeric/conversion/converter_policies.hpp: In member function
 â€˜void
 boost::numeric::def_overflow_handler::operator()(boost::numeric::range_check_result)’:
 /media/data/dev/svn/boost-
 trunk/boost/numeric/conversion/converter_policies.hpp:162:31: error:
 exception handling disabled, use -fexceptions to enable
 }}}

 It would be nice if Boost.Lexical_cast (and Boost.Numeric Convert that it
 seems to use) could be made to work with exceptions disabled.

 The reason I need this is because Boost.Math seems to depend on
 lexical_cast, and I want to use it without exception support.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5800>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC