|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49094 - trunk/libs/system/src
From: bdawes_at_[hidden]
Date: 2008-10-01 15:08:08
Author: bemandawes
Date: 2008-10-01 15:08:08 EDT (Wed, 01 Oct 2008)
New Revision: 49094
URL: http://svn.boost.org/trac/boost/changeset/49094
Log:
system: add #ifndef as requested by #2098
Text files modified:
trunk/libs/system/src/error_code.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Modified: trunk/libs/system/src/error_code.cpp
==============================================================================
--- trunk/libs/system/src/error_code.cpp (original)
+++ trunk/libs/system/src/error_code.cpp 2008-10-01 15:08:08 EDT (Wed, 01 Oct 2008)
@@ -131,10 +131,14 @@
{
msg = ( ( result == invalid_argument ) ? "Unknown error" : bp );
}
+
+# ifndef BOOST_NO_EXCEPTIONS
+ // See ticket #2098
catch(...)
{
// just eat the exception
}
+# endif
if ( sz > sizeof(buf) ) std::free( bp );
sz = 0;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk