Ticket #7149: 7149.patch

File 7149.patch, 980 bytes (added by viboes, 10 years ago)

This pacth works for me.

  • system_error.hpp

     
    2121
    2222    class BOOST_SYMBOL_VISIBLE system_error : public std::runtime_error
    2323    // BOOST_SYMBOL_VISIBLE is needed by GCC to ensure system_error thrown from a shared
    24     // library can be caught. See svn.boost.org/trac/boost/ticket/3697 
     24    // library can be caught. See svn.boost.org/trac/boost/ticket/3697
    2525    {
    2626    public:
    2727      system_error( error_code ec )
     
    6161    {
    6262      if ( m_what.empty() )
    6363      {
     64#ifndef BOOST_NO_EXCEPTIONS
    6465        try
     66#endif
    6567        {
    6668          m_what = this->std::runtime_error::what();
    6769          if ( !m_what.empty() ) m_what += ": ";
    6870          m_what += m_error_code.message();
    6971        }
     72#ifndef BOOST_NO_EXCEPTIONS
    7073        catch (...) { return std::runtime_error::what(); }
     74#endif
    7175      }
    7276      return m_what.c_str();
    7377    }