System/FileSystem/Asio/Thread: ref #7278 Added noexcept to Boost.System to conform with C++11

[SVN r81808]
This commit is contained in:
Vicente J. Botet Escriba committed 2012-12-09 14:47:39 +00:00
1 parent 8fbde538f3
commit 65e14ff167
4 files changed
+108 -89

No files matched your search

+5 -1
View File
@@ -21,7 +21,7 @@ namespace boost
class BOOST_SYMBOL_VISIBLE system_error : public std::runtime_error
// BOOST_SYMBOL_VISIBLE is needed by GCC to ensure system_error thrown from a shared
// library can be caught. See svn.boost.org/trac/boost/ticket/3697
// library can be caught. See svn.boost.org/trac/boost/ticket/3697
{
public:
system_error( error_code ec )
@@ -61,13 +61,17 @@ namespace boost
{
if ( m_what.empty() )
{
#ifndef BOOST_NO_EXCEPTIONS
try
#endif
{
m_what = this->std::runtime_error::what();
if ( !m_what.empty() ) m_what += ": ";
m_what += m_error_code.message();
}
#ifndef BOOST_NO_EXCEPTIONS
catch (...) { return std::runtime_error::what(); }
#endif
}
return m_what.c_str();
}