File indexing completed on 2024-11-15 09:04:42
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_CONTAINER_DETAIL_WORKAROUND_HPP
0012 #define BOOST_CONTAINER_DETAIL_WORKAROUND_HPP
0013
0014 #ifndef BOOST_CONFIG_HPP
0015 # include <boost/config.hpp>
0016 #endif
0017
0018 #if defined(BOOST_HAS_PRAGMA_ONCE)
0019 # pragma once
0020 #endif
0021
0022 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)\
0023 && !defined(BOOST_INTERPROCESS_DISABLE_VARIADIC_TMPL)
0024 #define BOOST_CONTAINER_PERFECT_FORWARDING
0025 #endif
0026
0027 #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && defined(__GXX_EXPERIMENTAL_CXX0X__)\
0028 && (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ < 40700)
0029 #define BOOST_CONTAINER_UNIMPLEMENTED_PACK_EXPANSION_TO_FIXED_LIST
0030 #endif
0031
0032 #if defined(BOOST_GCC_VERSION)
0033 # if (BOOST_GCC_VERSION < 40700) || !defined(BOOST_GCC_CXX11)
0034 # define BOOST_CONTAINER_NO_CXX11_DELEGATING_CONSTRUCTORS
0035 # endif
0036 #elif defined(BOOST_MSVC)
0037 # if _MSC_FULL_VER < 180020827
0038 # define BOOST_CONTAINER_NO_CXX11_DELEGATING_CONSTRUCTORS
0039 # endif
0040 #elif defined(BOOST_CLANG)
0041 # if !__has_feature(cxx_delegating_constructors)
0042 # define BOOST_CONTAINER_NO_CXX11_DELEGATING_CONSTRUCTORS
0043 # endif
0044 #endif
0045
0046 #if defined(BOOST_MSVC) && (_MSC_VER < 1400)
0047 #define BOOST_CONTAINER_TEMPLATED_CONVERSION_OPERATOR_BROKEN
0048 #endif
0049
0050 #if !defined(BOOST_NO_CXX11_HDR_TUPLE) || (defined(BOOST_MSVC) && (BOOST_MSVC == 1700 || BOOST_MSVC == 1600))
0051 #define BOOST_CONTAINER_PAIR_TEST_HAS_HEADER_TUPLE
0052 #endif
0053
0054
0055 #define BOOST_CONTAINER_IMPDEF(TYPE) TYPE
0056 #define BOOST_CONTAINER_SEEDOC(TYPE) TYPE
0057
0058
0059
0060
0061
0062
0063 #ifndef BOOST_CONTAINER_MEMZEROED_FLOATING_POINT_IS_NOT_ZERO
0064 #define BOOST_CONTAINER_MEMZEROED_FLOATING_POINT_IS_ZERO 1
0065 #endif
0066
0067 #ifndef BOOST_CONTAINER_MEMZEROED_POINTER_IS_NOT_NULL
0068 #define BOOST_CONTAINER_MEMZEROED_POINTER_IS_NULL
0069 #endif
0070
0071 #define BOOST_CONTAINER_DOC1ST(TYPE1, TYPE2) TYPE2
0072 #define BOOST_CONTAINER_I ,
0073 #define BOOST_CONTAINER_DOCIGN(T) T
0074 #define BOOST_CONTAINER_DOCONLY(T)
0075
0076
0077
0078
0079
0080
0081
0082 #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_CONTAINER_DYN_LINK)
0083
0084
0085 #ifdef BOOST_CONTAINER_SOURCE
0086 # define BOOST_CONTAINER_DECL BOOST_SYMBOL_EXPORT
0087 #else
0088 # define BOOST_CONTAINER_DECL BOOST_SYMBOL_IMPORT
0089
0090 #endif
0091 #else
0092 #define BOOST_CONTAINER_DECL
0093 #endif
0094
0095
0096
0097 #if defined(BOOST_CONTAINER_DISABLE_FORCEINLINE)
0098 #define BOOST_CONTAINER_FORCEINLINE inline
0099 #elif defined(BOOST_CONTAINER_FORCEINLINE_IS_BOOST_FORCELINE)
0100 #define BOOST_CONTAINER_FORCEINLINE BOOST_FORCEINLINE
0101 #elif defined(BOOST_MSVC) && (_MSC_VER <= 1900 || defined(_DEBUG))
0102
0103 #define BOOST_CONTAINER_FORCEINLINE inline
0104 #elif defined(BOOST_GCC) && ((__GNUC__ <= 5) || defined(__MINGW32__))
0105
0106 #define BOOST_CONTAINER_FORCEINLINE inline
0107 #else
0108 #define BOOST_CONTAINER_FORCEINLINE BOOST_FORCEINLINE
0109 #endif
0110
0111
0112
0113 #if defined(BOOST_CONTAINER_DISABLE_NOINLINE)
0114 #define BOOST_CONTAINER_NOINLINE
0115 #else
0116 #define BOOST_CONTAINER_NOINLINE BOOST_NOINLINE
0117 #endif
0118
0119
0120 #if !defined(__has_feature)
0121 #define BOOST_CONTAINER_HAS_FEATURE(feature) 0
0122 #else
0123 #define BOOST_CONTAINER_HAS_FEATURE(feature) __has_feature(feature)
0124 #endif
0125
0126
0127 #if defined(__SANITIZE_ADDRESS__) || BOOST_CONTAINER_HAS_FEATURE(address_sanitizer)
0128 #define BOOST_CONTAINER_ASAN
0129 #endif
0130
0131
0132 #if (BOOST_CXX_VERSION < 201703L) || !defined(__cpp_deduction_guides)
0133 #define BOOST_CONTAINER_NO_CXX17_CTAD
0134 #endif
0135
0136 #if defined(BOOST_CONTAINER_DISABLE_ATTRIBUTE_NODISCARD)
0137 #define BOOST_CONTAINER_ATTRIBUTE_NODISCARD
0138 #else
0139 #if defined(BOOST_GCC) && ((BOOST_GCC < 100000) || (__cplusplus < 201703L))
0140
0141
0142 #define BOOST_CONTAINER_ATTRIBUTE_NODISCARD
0143 #else
0144 #define BOOST_CONTAINER_ATTRIBUTE_NODISCARD BOOST_ATTRIBUTE_NODISCARD
0145 #endif
0146 #endif
0147
0148
0149
0150
0151
0152
0153
0154
0155 namespace boost {
0156 namespace container {
0157
0158 template <typename T1>
0159 BOOST_FORCEINLINE BOOST_CXX14_CONSTEXPR void ignore(T1 const&)
0160 {}
0161
0162 }}
0163
0164 #if !(defined BOOST_NO_EXCEPTIONS)
0165 # define BOOST_CONTAINER_TRY { try
0166 # define BOOST_CONTAINER_CATCH(x) catch(x)
0167 # define BOOST_CONTAINER_RETHROW throw;
0168 # define BOOST_CONTAINER_CATCH_END }
0169 #else
0170 # if !defined(BOOST_MSVC) || BOOST_MSVC >= 1900
0171 # define BOOST_CONTAINER_TRY { if (true)
0172 # define BOOST_CONTAINER_CATCH(x) else if (false)
0173 # else
0174
0175 # define BOOST_CONTAINER_TRY { \
0176 __pragma(warning(push)) \
0177 __pragma(warning(disable: 4127)) \
0178 if (true) \
0179 __pragma(warning(pop))
0180 # define BOOST_CONTAINER_CATCH(x) else \
0181 __pragma(warning(push)) \
0182 __pragma(warning(disable: 4127)) \
0183 if (false) \
0184 __pragma(warning(pop))
0185 # endif
0186 # define BOOST_CONTAINER_RETHROW
0187 # define BOOST_CONTAINER_CATCH_END }
0188 #endif
0189
0190 #endif