From 514355281753b29d3be77d32a1817c5a0d0bd739 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Thu, 6 Jun 2019 15:33:45 -0700 Subject: [PATCH] throw() -> BOOST_NOEXCEPT_OR_NOTHROW --- .gitignore | 1 + include/boost/exception/exception.hpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..342f845 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.vscode/ipch/* diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index d5c22c4..ab78767 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -165,7 +165,7 @@ boost protected: - ~error_info_container() throw() + ~error_info_container() BOOST_NOEXCEPT_OR_NOTHROW { } }; @@ -233,7 +233,7 @@ boost #ifdef __HP_aCC //On HP aCC, this protected copy constructor prevents throwing boost::exception. //On all other platforms, the same effect is achieved by the pure virtual destructor. - exception( exception const & x ) throw(): + exception( exception const & x ) BOOST_NOEXCEPT_OR_NOTHROW: data_(x.data_), throw_function_(x.throw_function_), throw_file_(x.throw_file_), @@ -242,7 +242,7 @@ boost } #endif - virtual ~exception() throw() + virtual ~exception() BOOST_NOEXCEPT_OR_NOTHROW #ifndef __HP_aCC = 0 //Workaround for HP aCC, =0 incorrectly leads to link errors. #endif @@ -287,7 +287,7 @@ boost inline exception:: - ~exception() throw() + ~exception() BOOST_NOEXCEPT_OR_NOTHROW { } @@ -337,7 +337,7 @@ boost { } - ~error_info_injector() throw() + ~error_info_injector() BOOST_NOEXCEPT_OR_NOTHROW { } }; @@ -398,7 +398,7 @@ boost virtual void rethrow() const = 0; virtual - ~clone_base() throw() + ~clone_base() BOOST_NOEXCEPT_OR_NOTHROW { } }; @@ -445,7 +445,7 @@ boost copy_boost_exception(this,&x); } - ~clone_impl() throw() + ~clone_impl() BOOST_NOEXCEPT_OR_NOTHROW { } @@ -487,7 +487,7 @@ boost { } - ~wrapexcept() throw() + ~wrapexcept() BOOST_NOEXCEPT_OR_NOTHROW { } };