From ee16863a40e52db69a55894ee823aadeff5a60de Mon Sep 17 00:00:00 2001 From: Beman Dawes Date: Wed, 1 Oct 2008 19:08:08 +0000 Subject: [PATCH] system: add #ifndef as requested by #2098 [SVN r49094] --- src/error_code.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/error_code.cpp b/src/error_code.cpp index e043a55..fa36dc9 100644 --- a/src/error_code.cpp +++ b/src/error_code.cpp @@ -131,10 +131,14 @@ namespace { 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;