Skip to content

Commit

Permalink
Remove definition of BOOST_SP_NOEXCEPT to ensure no uses remain
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Oct 2, 2024
1 parent aa784ce commit 0521c89
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions include/boost/smart_ptr/detail/sp_noexcept.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,21 @@

// 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) )

# define BOOST_SP_NOEXCEPT_WITH_ASSERT

#else

# define BOOST_SP_NOEXCEPT_WITH_ASSERT BOOST_SP_NOEXCEPT
# define BOOST_SP_NOEXCEPT_WITH_ASSERT noexcept

#endif

Expand Down

0 comments on commit 0521c89

Please sign in to comment.