Ticket #7149: 7149.patch
File 7149.patch, 980 bytes (added by , 10 years ago) |
---|
-
system_error.hpp
21 21 22 22 class BOOST_SYMBOL_VISIBLE system_error : public std::runtime_error 23 23 // 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 25 25 { 26 26 public: 27 27 system_error( error_code ec ) … … 61 61 { 62 62 if ( m_what.empty() ) 63 63 { 64 #ifndef BOOST_NO_EXCEPTIONS 64 65 try 66 #endif 65 67 { 66 68 m_what = this->std::runtime_error::what(); 67 69 if ( !m_what.empty() ) m_what += ": "; 68 70 m_what += m_error_code.message(); 69 71 } 72 #ifndef BOOST_NO_EXCEPTIONS 70 73 catch (...) { return std::runtime_error::what(); } 74 #endif 71 75 } 72 76 return m_what.c_str(); 73 77 }