| 1 | /* Copyright 2003-2022 Joaquin M Lopez Munoz. |
| 2 | * Distributed under the Boost Software License, Version 1.0. |
| 3 | * (See accompanying file LICENSE_1_0.txt or copy at |
| 4 | * http://www.boost.org/LICENSE_1_0.txt) |
| 5 | * |
| 6 | * See http://www.boost.org/libs/multi_index for library home page. |
| 7 | */ |
| 8 | |
| 9 | #if !defined(BOOST_CONFIG_HPP) |
| 10 | #error <boost/config.hpp> must be included before this header |
| 11 | #endif |
| 12 | |
| 13 | #if !defined(BOOST_MULTI_INDEX_DETAIL_UNDEF_IF_CONSTEXPR_MACRO) |
| 14 | |
| 15 | #if !defined(BOOST_NO_CXX17_IF_CONSTEXPR) |
| 16 | #define BOOST_MULTI_INDEX_IF_CONSTEXPR if constexpr |
| 17 | #else |
| 18 | #define BOOST_MULTI_INDEX_IF_CONSTEXPR if |
| 19 | #if defined(BOOST_MSVC) |
| 20 | #define BOOST_MULTI_INDEX_DETAIL_C4127_DISABLED |
| 21 | #pragma warning(push) |
| 22 | #pragma warning(disable:4127) /* conditional expression is constant */ |
| 23 | #endif |
| 24 | #endif |
| 25 | |
| 26 | #else |
| 27 | |
| 28 | #undef BOOST_MULTI_INDEX_IF_CONSTEXPR |
| 29 | #if defined(BOOST_MULTI_INDEX_DETAIL_C4127_DISABLED) |
| 30 | #pragma warning(pop) |
| 31 | #undef BOOST_MULTI_INDEX_DETAIL_C4127_DISABLED |
| 32 | #endif |
| 33 | |
| 34 | #endif |
| 35 | |