1 // (C) Copyright John Maddock 2001 - 2003. 2 // (C) Copyright Jens Maurer 2001. 3 // (C) Copyright Peter Dimov 2001. 4 // (C) Copyright David Abrahams 2002. 5 // (C) Copyright Guillaume Melquiond 2003. 6 // Use, modification and distribution are subject to the 7 // Boost Software License, Version 1.0. (See accompanying file 8 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 9 10 // See http://www.boost.org for most recent version. 11 12 // Dinkumware standard library config: 13 14 #if !defined(_YVALS) && !defined(_CPPLIB_VER) 15 #include <boost/config/no_tr1/utility.hpp> 16 #if !defined(_YVALS) && !defined(_CPPLIB_VER) 17 #error This is not the Dinkumware lib! 18 #endif 19 #endif 20 21 22 #if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306) 23 // full dinkumware 3.06 and above 24 // fully conforming provided the compiler supports it: 25 # if !(defined(_GLOBAL_USING) && (_GLOBAL_USING+0 > 0)) && !defined(BOOST_BORLANDC) && !defined(_STD) && !(defined(__ICC) && (__ICC >= 700)) // can be defined in yvals.h 26 # define BOOST_NO_STDC_NAMESPACE 27 # endif 28 # if !(defined(_HAS_MEMBER_TEMPLATES_REBIND) && (_HAS_MEMBER_TEMPLATES_REBIND+0 > 0)) && !(defined(_MSC_VER) && (_MSC_VER > 1300)) && defined(BOOST_MSVC) 29 # define BOOST_NO_STD_ALLOCATOR 30 # endif 31 # define BOOST_HAS_PARTIAL_STD_ALLOCATOR 32 # if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) 33 // if this lib version is set up for vc6 then there is no std::use_facet: 34 # define BOOST_NO_STD_USE_FACET 35 # define BOOST_HAS_TWO_ARG_USE_FACET 36 // C lib functions aren't in namespace std either: 37 # define BOOST_NO_STDC_NAMESPACE 38 // and nor is <exception> 39 # define BOOST_NO_EXCEPTION_STD_NAMESPACE 40 # endif 41 // There's no numeric_limits<long long> support unless _LONGLONG is defined: 42 # if !defined(_LONGLONG) && (_CPPLIB_VER <= 310) 43 # define BOOST_NO_MS_INT64_NUMERIC_LIMITS 44 # endif 45 // 3.06 appears to have (non-sgi versions of) <hash_set> & <hash_map>, 46 // and no <slist> at all 47 #else 48 # define BOOST_MSVC_STD_ITERATOR 1 49 # define BOOST_NO_STD_ITERATOR 50 # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS 51 # define BOOST_NO_STD_ALLOCATOR 52 # define BOOST_NO_STDC_NAMESPACE 53 # define BOOST_NO_STD_USE_FACET 54 # define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN 55 # define BOOST_HAS_MACRO_USE_FACET 56 # ifndef _CPPLIB_VER 57 // Updated Dinkum library defines this, and provides 58 // its own min and max definitions, as does MTA version. 59 # ifndef __MTA__ 60 # define BOOST_NO_STD_MIN_MAX 61 # endif 62 # define BOOST_NO_MS_INT64_NUMERIC_LIMITS 63 # endif 64 #endif 65 66 // 67 // std extension namespace is stdext for vc7.1 and later, 68 // the same applies to other compilers that sit on top 69 // of vc7.1 (Intel and Comeau): 70 // 71 #if defined(_MSC_VER) && (_MSC_VER >= 1310) && !defined(BOOST_BORLANDC) 72 # define BOOST_STD_EXTENSION_NAMESPACE stdext 73 #endif 74 75 76 #if (defined(_MSC_VER) && (_MSC_VER <= 1300) && !defined(BOOST_BORLANDC)) || !defined(_CPPLIB_VER) || (_CPPLIB_VER < 306) 77 // if we're using a dinkum lib that's 78 // been configured for VC6/7 then there is 79 // no iterator traits (true even for icl) 80 # define BOOST_NO_STD_ITERATOR_TRAITS 81 #endif 82 83 #if defined(__ICL) && (__ICL < 800) && defined(_CPPLIB_VER) && (_CPPLIB_VER <= 310) 84 // Intel C++ chokes over any non-trivial use of <locale> 85 // this may be an overly restrictive define, but regex fails without it: 86 # define BOOST_NO_STD_LOCALE 87 #endif 88 89 #if BOOST_MSVC < 1800 90 // Fix for VC++ 8.0 on up ( I do not have a previous version to test ) 91 // or clang-cl. If exceptions are off you must manually include the 92 // <exception> header before including the <typeinfo> header. Admittedly 93 // trying to use Boost libraries or the standard C++ libraries without 94 // exception support is not suggested but currently clang-cl ( v 3.4 ) 95 // does not support exceptions and must be compiled with exceptions off. 96 #if !_HAS_EXCEPTIONS && ((defined(BOOST_MSVC) && BOOST_MSVC >= 1400) || (defined(__clang__) && defined(_MSC_VER))) 97 #include <exception> 98 #endif 99 #include <typeinfo> 100 #if ( (!_HAS_EXCEPTIONS && !defined(__ghs__)) || (defined(__ghs__) && !_HAS_NAMESPACE) ) && !defined(__TI_COMPILER_VERSION__) && !defined(__VISUALDSPVERSION__) \ 101 && !defined(__VXWORKS__) && !defined(BOOST_EMBTC_WINDOWS) 102 # define BOOST_NO_STD_TYPEINFO 103 #endif 104 #endif 105 106 // C++0x headers implemented in 520 (as shipped by Microsoft) 107 // 108 #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 520 109 # define BOOST_NO_CXX11_HDR_ARRAY 110 # define BOOST_NO_CXX11_HDR_CODECVT 111 # define BOOST_NO_CXX11_HDR_FORWARD_LIST 112 # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST 113 # define BOOST_NO_CXX11_HDR_RANDOM 114 # define BOOST_NO_CXX11_HDR_REGEX 115 # define BOOST_NO_CXX11_HDR_SYSTEM_ERROR 116 # define BOOST_NO_CXX11_HDR_UNORDERED_MAP 117 # define BOOST_NO_CXX11_HDR_UNORDERED_SET 118 # define BOOST_NO_CXX11_HDR_TUPLE 119 # define BOOST_NO_CXX11_HDR_TYPEINDEX 120 # define BOOST_NO_CXX11_HDR_FUNCTIONAL 121 # define BOOST_NO_CXX11_NUMERIC_LIMITS 122 # define BOOST_NO_CXX11_SMART_PTR 123 #endif 124 125 #if ((!defined(_HAS_TR1_IMPORTS) || (_HAS_TR1_IMPORTS+0 == 0)) && !defined(BOOST_NO_CXX11_HDR_TUPLE)) \ 126 && (!defined(_CPPLIB_VER) || _CPPLIB_VER < 610) 127 # define BOOST_NO_CXX11_HDR_TUPLE 128 #endif 129 130 // C++0x headers implemented in 540 (as shipped by Microsoft) 131 // 132 #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 540 133 # define BOOST_NO_CXX11_HDR_TYPE_TRAITS 134 # define BOOST_NO_CXX11_HDR_CHRONO 135 # define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE 136 # define BOOST_NO_CXX11_HDR_FUTURE 137 # define BOOST_NO_CXX11_HDR_MUTEX 138 # define BOOST_NO_CXX11_HDR_RATIO 139 # define BOOST_NO_CXX11_HDR_THREAD 140 # define BOOST_NO_CXX11_ATOMIC_SMART_PTR 141 # define BOOST_NO_CXX11_HDR_EXCEPTION 142 #endif 143 144 // C++0x headers implemented in 610 (as shipped by Microsoft) 145 // 146 #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 610 147 # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST 148 # define BOOST_NO_CXX11_HDR_ATOMIC 149 # define BOOST_NO_CXX11_ALLOCATOR 150 // 540 has std::align but it is not a conforming implementation 151 # define BOOST_NO_CXX11_STD_ALIGN 152 #endif 153 154 // Before 650 std::pointer_traits has a broken rebind template 155 #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 650 156 # define BOOST_NO_CXX11_POINTER_TRAITS 157 #elif defined(BOOST_MSVC) && BOOST_MSVC < 1910 158 # define BOOST_NO_CXX11_POINTER_TRAITS 159 #endif 160 161 #if defined(__has_include) 162 #if !__has_include(<shared_mutex>) 163 # define BOOST_NO_CXX14_HDR_SHARED_MUTEX 164 #elif (__cplusplus < 201402) && !defined(_MSC_VER) 165 # define BOOST_NO_CXX14_HDR_SHARED_MUTEX 166 #endif 167 #elif !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) 168 # define BOOST_NO_CXX14_HDR_SHARED_MUTEX 169 #endif 170 171 // C++14 features 172 #if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) 173 # define BOOST_NO_CXX14_STD_EXCHANGE 174 #endif 175 176 // C++17 features 177 #if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) || !defined(BOOST_MSVC) || (BOOST_MSVC < 1910) || !defined(_HAS_CXX17) || (_HAS_CXX17 == 0) 178 # define BOOST_NO_CXX17_STD_APPLY 179 # define BOOST_NO_CXX17_ITERATOR_TRAITS 180 # define BOOST_NO_CXX17_HDR_STRING_VIEW 181 # define BOOST_NO_CXX17_HDR_OPTIONAL 182 # define BOOST_NO_CXX17_HDR_VARIANT 183 #endif 184 #if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) || !defined(_HAS_CXX17) || (_HAS_CXX17 == 0) || !defined(_MSVC_STL_UPDATE) || (_MSVC_STL_UPDATE < 201709) 185 # define BOOST_NO_CXX17_STD_INVOKE 186 #endif 187 188 #if !(!defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) || !defined(BOOST_MSVC) || (BOOST_MSVC < 1912) || !defined(_HAS_CXX17) || (_HAS_CXX17 == 0)) 189 // Deprecated std::iterator: 190 # define BOOST_NO_STD_ITERATOR 191 #endif 192 193 #if defined(BOOST_INTEL) && (BOOST_INTEL <= 1400) 194 // Intel's compiler can't handle this header yet: 195 # define BOOST_NO_CXX11_HDR_ATOMIC 196 #endif 197 198 199 // 520..610 have std::addressof, but it doesn't support functions 200 // 201 #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 650 202 # define BOOST_NO_CXX11_ADDRESSOF 203 #endif 204 205 // Bug specific to VC14, 206 // See https://connect.microsoft.com/VisualStudio/feedback/details/1348277/link-error-when-using-std-codecvt-utf8-utf16-char16-t 207 // and discussion here: http://blogs.msdn.com/b/vcblog/archive/2014/11/12/visual-studio-2015-preview-now-available.aspx?PageIndex=2 208 #if defined(_CPPLIB_VER) && (_CPPLIB_VER == 650) 209 # define BOOST_NO_CXX11_HDR_CODECVT 210 #endif 211 212 #if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 650) 213 // If _HAS_AUTO_PTR_ETC is defined to 0, std::auto_ptr and std::random_shuffle are not available. 214 // See https://www.visualstudio.com/en-us/news/vs2015-vs.aspx#C++ 215 // and http://blogs.msdn.com/b/vcblog/archive/2015/06/19/c-11-14-17-features-in-vs-2015-rtm.aspx 216 # if defined(_HAS_AUTO_PTR_ETC) && (_HAS_AUTO_PTR_ETC == 0) 217 # define BOOST_NO_AUTO_PTR 218 # define BOOST_NO_CXX98_RANDOM_SHUFFLE 219 # define BOOST_NO_CXX98_FUNCTION_BASE 220 # define BOOST_NO_CXX98_BINDERS 221 # endif 222 #endif 223 224 225 // 226 // Things not supported by the CLR: 227 #ifdef _M_CEE 228 #ifndef BOOST_NO_CXX11_HDR_MUTEX 229 # define BOOST_NO_CXX11_HDR_MUTEX 230 #endif 231 #ifndef BOOST_NO_CXX11_HDR_ATOMIC 232 # define BOOST_NO_CXX11_HDR_ATOMIC 233 #endif 234 #ifndef BOOST_NO_CXX11_HDR_FUTURE 235 # define BOOST_NO_CXX11_HDR_FUTURE 236 #endif 237 #ifndef BOOST_NO_CXX11_HDR_CONDITION_VARIABLE 238 # define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE 239 #endif 240 #ifndef BOOST_NO_CXX11_HDR_THREAD 241 # define BOOST_NO_CXX11_HDR_THREAD 242 #endif 243 #ifndef BOOST_NO_CXX14_HDR_SHARED_MUTEX 244 # define BOOST_NO_CXX14_HDR_SHARED_MUTEX 245 #endif 246 #ifndef BOOST_NO_CXX14_STD_EXCHANGE 247 # define BOOST_NO_CXX14_STD_EXCHANGE 248 #endif 249 #ifndef BOOST_NO_FENV_H 250 # define BOOST_NO_FENV_H 251 #endif 252 #endif 253 254 #ifdef _CPPLIB_VER 255 # define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER 256 #else 257 # define BOOST_DINKUMWARE_STDLIB 1 258 #endif 259 260 #ifdef _CPPLIB_VER 261 # define BOOST_STDLIB "Dinkumware standard library version " BOOST_STRINGIZE(_CPPLIB_VER) 262 #else 263 # define BOOST_STDLIB "Dinkumware standard library version 1.x" 264 #endif 265