From 13d61cf86ec02f1f5ca74927e6fa0ff61c3cae7b Mon Sep 17 00:00:00 2001 From: Michael Stevens Date: Thu, 26 Aug 2004 12:46:18 +0000 Subject: [PATCH] Exceptions on by default Use BOOST_UBLAS_NO_EXCEPTIONS to disable [SVN r24753] --- include/boost/numeric/ublas/exception.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/boost/numeric/ublas/exception.hpp b/include/boost/numeric/ublas/exception.hpp index 82058245..1864f1bf 100644 --- a/include/boost/numeric/ublas/exception.hpp +++ b/include/boost/numeric/ublas/exception.hpp @@ -17,7 +17,7 @@ #ifndef BOOST_UBLAS_EXCEPTION_H #define BOOST_UBLAS_EXCEPTION_H -#if ! defined (BOOST_NO_EXCEPTIONS) && defined (BOOST_UBLAS_USE_EXCEPTIONS) +#if ! defined (BOOST_NO_EXCEPTIONS) && ! defined (BOOST_UBLAS_NO_EXCEPTIONS) #include #else #include @@ -31,7 +31,7 @@ namespace boost { namespace numeric { namespace ublas { struct divide_by_zero -#if ! defined (BOOST_NO_EXCEPTIONS) && defined (BOOST_UBLAS_USE_EXCEPTIONS) +#if ! defined (BOOST_NO_EXCEPTIONS) && ! defined (BOOST_UBLAS_NO_EXCEPTIONS) // Inherit from standard exceptions as requested during review. : public std::runtime_error { explicit @@ -56,7 +56,7 @@ namespace boost { namespace numeric { namespace ublas { }; struct internal_logic -#if ! defined (BOOST_NO_EXCEPTIONS) && defined (BOOST_UBLAS_USE_EXCEPTIONS) +#if ! defined (BOOST_NO_EXCEPTIONS) && ! defined (BOOST_UBLAS_NO_EXCEPTIONS) // Inherit from standard exceptions as requested during review. : public std::logic_error { explicit @@ -81,7 +81,7 @@ namespace boost { namespace numeric { namespace ublas { }; struct external_logic -#if ! defined (BOOST_NO_EXCEPTIONS) && defined (BOOST_UBLAS_USE_EXCEPTIONS) +#if ! defined (BOOST_NO_EXCEPTIONS) && ! defined (BOOST_UBLAS_NO_EXCEPTIONS) // Inherit from standard exceptions as requested during review. : public std::logic_error { explicit @@ -109,7 +109,7 @@ namespace boost { namespace numeric { namespace ublas { }; struct bad_argument -#if ! defined (BOOST_NO_EXCEPTIONS) && defined (BOOST_UBLAS_USE_EXCEPTIONS) +#if ! defined (BOOST_NO_EXCEPTIONS) && ! defined (BOOST_UBLAS_NO_EXCEPTIONS) // Inherit from standard exceptions as requested during review. : public std::invalid_argument { explicit @@ -135,7 +135,7 @@ namespace boost { namespace numeric { namespace ublas { }; struct bad_size -#if ! defined (BOOST_NO_EXCEPTIONS) && defined (BOOST_UBLAS_USE_EXCEPTIONS) +#if ! defined (BOOST_NO_EXCEPTIONS) && ! defined (BOOST_UBLAS_NO_EXCEPTIONS) // Inherit from standard exceptions as requested during review. : public std::domain_error { explicit @@ -160,7 +160,7 @@ namespace boost { namespace numeric { namespace ublas { }; struct bad_index -#if ! defined (BOOST_NO_EXCEPTIONS) && defined (BOOST_UBLAS_USE_EXCEPTIONS) +#if ! defined (BOOST_NO_EXCEPTIONS) && ! defined (BOOST_UBLAS_NO_EXCEPTIONS) // Inherit from standard exceptions as requested during review. : public std::out_of_range { explicit @@ -185,7 +185,7 @@ namespace boost { namespace numeric { namespace ublas { }; struct singular -#if ! defined (BOOST_NO_EXCEPTIONS) && defined (BOOST_UBLAS_USE_EXCEPTIONS) +#if ! defined (BOOST_NO_EXCEPTIONS) && ! defined (BOOST_UBLAS_NO_EXCEPTIONS) // Inherit from standard exceptions as requested during review. : public std::runtime_error { explicit @@ -211,7 +211,7 @@ namespace boost { namespace numeric { namespace ublas { }; struct non_real -#if ! defined (BOOST_NO_EXCEPTIONS) && defined (BOOST_UBLAS_USE_EXCEPTIONS) +#if ! defined (BOOST_NO_EXCEPTIONS) && ! defined (BOOST_UBLAS_NO_EXCEPTIONS) // Inherit from standard exceptions as requested during review. : public std::domain_error { explicit