| 1 | #ifndef BOOST_SMART_PTR_DETAIL_SP_NOEXCEPT_HPP_INCLUDED |
| 2 | #define BOOST_SMART_PTR_DETAIL_SP_NOEXCEPT_HPP_INCLUDED |
| 3 | |
| 4 | // MS compatible compilers support #pragma once |
| 5 | |
| 6 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
| 7 | # pragma once |
| 8 | #endif |
| 9 | |
| 10 | // detail/sp_noexcept.hpp |
| 11 | // |
| 12 | // Copyright 2016, 2017 Peter Dimov |
| 13 | // |
| 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 |
| 17 | |
| 18 | #include <boost/config.hpp> |
| 19 | |
| 20 | // BOOST_SP_NOEXCEPT |
| 21 | |
| 22 | #if defined( BOOST_MSVC ) && BOOST_MSVC >= 1700 && BOOST_MSVC < 1900 |
| 23 | |
| 24 | # define BOOST_SP_NOEXCEPT BOOST_NOEXCEPT_OR_NOTHROW |
| 25 | |
| 26 | #else |
| 27 | |
| 28 | # define BOOST_SP_NOEXCEPT BOOST_NOEXCEPT |
| 29 | |
| 30 | #endif |
| 31 | |
| 32 | // BOOST_SP_NOEXCEPT_WITH_ASSERT |
| 33 | |
| 34 | #if defined(BOOST_DISABLE_ASSERTS) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && defined(NDEBUG) ) |
| 35 | |
| 36 | # define BOOST_SP_NOEXCEPT_WITH_ASSERT BOOST_SP_NOEXCEPT |
| 37 | |
| 38 | #elif defined(BOOST_ENABLE_ASSERT_HANDLER) || ( defined(BOOST_ENABLE_ASSERT_DEBUG_HANDLER) && !defined(NDEBUG) ) |
| 39 | |
| 40 | # define BOOST_SP_NOEXCEPT_WITH_ASSERT |
| 41 | |
| 42 | #else |
| 43 | |
| 44 | # define BOOST_SP_NOEXCEPT_WITH_ASSERT BOOST_SP_NOEXCEPT |
| 45 | |
| 46 | #endif |
| 47 | |
| 48 | #endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_NOEXCEPT_HPP_INCLUDED |
| 49 | |