1 #ifndef BOOST_SMART_PTR_DETAIL_SP_NOEXCEPT_HPP_INCLUDED
2 #define BOOST_SMART_PTR_DETAIL_SP_NOEXCEPT_HPP_INCLUDED
4 // MS compatible compilers support #pragma once
6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
10 // detail/sp_noexcept.hpp
12 // Copyright 2016, 2017 Peter Dimov
14 // Distributed under the Boost Software License, Version 1.0.
15 // See accompanying file LICENSE_1_0.txt or copy at
16 // http://www.boost.org/LICENSE_1_0.txt
18 #include <boost/config.hpp>
22 #if defined( BOOST_MSVC ) && BOOST_MSVC >= 1700 && BOOST_MSVC < 1900
24 # define BOOST_SP_NOEXCEPT BOOST_NOEXCEPT_OR_NOTHROW
28 # define BOOST_SP_NOEXCEPT BOOST_NOEXCEPT
32 // BOOST_SP_NOEXCEPT_WITH_ASSERT
34 #if defined(BOOST_DISABLE_ASSERTS) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && defined(NDEBUG) )
36 # define BOOST_SP_NOEXCEPT_WITH_ASSERT BOOST_SP_NOEXCEPT
38 #elif defined(BOOST_ENABLE_ASSERT_HANDLER) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && !defined(NDEBUG) )
40 # define BOOST_SP_NOEXCEPT_WITH_ASSERT
44 # define BOOST_SP_NOEXCEPT_WITH_ASSERT BOOST_SP_NOEXCEPT
48 #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_NOEXCEPT_HPP_INCLUDED