Subject: [Boost-bugs] [Boost C++ Libraries] #7500: system_error.hpp doesn't compile without exceptions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-10-12 19:47:13
#7500: system_error.hpp doesn't compile without exceptions
---------------------------------------------+------------------------------
Reporter: ruslan-b <RusBaratov@â¦> | Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: system
Version: Boost 1.51.0 | Severity: Problem
Keywords: no-exceptions system |
---------------------------------------------+------------------------------
Compiling with gcc flag '''-fno-exceptions''' failed:
{{{
..\boost_1_51_0\boost\system\system_error.hpp:70: error: exception
handling disabled, use -fexceptions to enable
}}}
code:
{{{
inline const char * system_error::what() const throw()
// see http://www.boost.org/more/error_handling.html for lazy build
rationale
{
if ( m_what.empty() )
{
try
{
m_what = this->std::runtime_error::what();
if ( !m_what.empty() ) m_what += ": ";
m_what += m_error_code.message();
}
catch (...) { return std::runtime_error::what(); }
}
return m_what.c_str();
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7500> 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:10 UTC