From 0521c89adab4238f579a27396c834672494d0ad8 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 2 Oct 2024 22:06:49 +0300 Subject: [PATCH] Remove definition of BOOST_SP_NOEXCEPT to ensure no uses remain --- include/boost/smart_ptr/detail/sp_noexcept.hpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/include/boost/smart_ptr/detail/sp_noexcept.hpp b/include/boost/smart_ptr/detail/sp_noexcept.hpp index 1287ba4952..790af2ce16 100644 --- a/include/boost/smart_ptr/detail/sp_noexcept.hpp +++ b/include/boost/smart_ptr/detail/sp_noexcept.hpp @@ -19,21 +19,13 @@ // BOOST_SP_NOEXCEPT -#if defined( BOOST_MSVC ) && BOOST_MSVC >= 1700 && BOOST_MSVC < 1900 - -# define BOOST_SP_NOEXCEPT BOOST_NOEXCEPT_OR_NOTHROW - -#else - -# define BOOST_SP_NOEXCEPT BOOST_NOEXCEPT - -#endif +// #define BOOST_SP_NOEXCEPT noexcept // BOOST_SP_NOEXCEPT_WITH_ASSERT #if defined(BOOST_DISABLE_ASSERTS) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && defined(NDEBUG) ) -# define BOOST_SP_NOEXCEPT_WITH_ASSERT BOOST_SP_NOEXCEPT +# define BOOST_SP_NOEXCEPT_WITH_ASSERT noexcept #elif defined(BOOST_ENABLE_ASSERT_HANDLER) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && !defined(NDEBUG) ) @@ -41,7 +33,7 @@ #else -# define BOOST_SP_NOEXCEPT_WITH_ASSERT BOOST_SP_NOEXCEPT +# define BOOST_SP_NOEXCEPT_WITH_ASSERT noexcept #endif