2003-11-26 12:25:35 +00:00
// (C) Copyright John Maddock 2001 - 2003.
// (C) Copyright Jens Maurer 2001.
// (C) Copyright Peter Dimov 2001.
// (C) Copyright David Abrahams 2002.
// (C) Copyright Guillaume Melquiond 2003.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
2003-10-04 11:29:20 +00:00
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
2001-09-18 11:13:39 +00:00
// See http://www.boost.org for most recent version.
// Dinkumware standard library config:
#if !defined(_YVALS) && !defined(_CPPLIB_VER)
2005-10-19 16:38:40 +00:00
#include <boost/config/no_tr1/utility.hpp>
2001-09-18 11:13:39 +00:00
#if !defined(_YVALS) && !defined(_CPPLIB_VER)
#error This is not the Dinkumware lib!
#endif
#endif
#if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306)
// full dinkumware 3.06 and above
// fully conforming provided the compiler supports it:
2020-03-18 20:23:04 -04:00
# if !(defined(_GLOBAL_USING) && (_GLOBAL_USING+0 > 0)) && !defined(BOOST_BORLANDC) && !defined(_STD) && !(defined(__ICC) && (__ICC >= 700)) // can be defined in yvals.h
2001-09-18 11:13:39 +00:00
# define BOOST_NO_STDC_NAMESPACE
# endif
2003-01-04 12:53:08 +00:00
# if !(defined(_HAS_MEMBER_TEMPLATES_REBIND) && (_HAS_MEMBER_TEMPLATES_REBIND+0 > 0)) && !(defined(_MSC_VER) && (_MSC_VER > 1300)) && defined(BOOST_MSVC)
2001-09-25 19:04:56 +00:00
# define BOOST_NO_STD_ALLOCATOR
# endif
2003-05-10 11:35:40 +00:00
# define BOOST_HAS_PARTIAL_STD_ALLOCATOR
2004-03-18 11:32:08 +00:00
# if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
2001-09-18 11:13:39 +00:00
// if this lib version is set up for vc6 then there is no std::use_facet:
# define BOOST_NO_STD_USE_FACET
# define BOOST_HAS_TWO_ARG_USE_FACET
2002-02-21 11:34:11 +00:00
// C lib functions aren't in namespace std either:
# define BOOST_NO_STDC_NAMESPACE
2002-08-13 11:52:06 +00:00
// and nor is <exception>
# define BOOST_NO_EXCEPTION_STD_NAMESPACE
2001-09-18 11:13:39 +00:00
# endif
2002-09-08 11:31:56 +00:00
// There's no numeric_limits<long long> support unless _LONGLONG is defined:
# if !defined(_LONGLONG) && (_CPPLIB_VER <= 310)
# define BOOST_NO_MS_INT64_NUMERIC_LIMITS
# endif
2003-11-26 12:25:35 +00:00
// 3.06 appears to have (non-sgi versions of) <hash_set> & <hash_map>,
2001-09-25 19:31:32 +00:00
// and no <slist> at all
2001-09-18 11:13:39 +00:00
#else
# define BOOST_MSVC_STD_ITERATOR 1
# define BOOST_NO_STD_ITERATOR
# define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
# define BOOST_NO_STD_ALLOCATOR
# define BOOST_NO_STDC_NAMESPACE
# define BOOST_NO_STD_USE_FACET
# define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN
# define BOOST_HAS_MACRO_USE_FACET
# ifndef _CPPLIB_VER
// Updated Dinkum library defines this, and provides
2009-08-06 09:22:02 +00:00
// its own min and max definitions, as does MTA version.
# ifndef __MTA__
# define BOOST_NO_STD_MIN_MAX
# endif
2002-07-18 11:06:42 +00:00
# define BOOST_NO_MS_INT64_NUMERIC_LIMITS
2001-09-18 11:13:39 +00:00
# endif
#endif
2004-02-03 12:41:45 +00:00
//
// std extension namespace is stdext for vc7.1 and later,
// the same applies to other compilers that sit on top
// of vc7.1 (Intel and Comeau):
//
2020-03-18 20:23:04 -04:00
#if defined(_MSC_VER) && (_MSC_VER >= 1310) && !defined(BOOST_BORLANDC)
2004-02-03 12:41:45 +00:00
# define BOOST_STD_EXTENSION_NAMESPACE stdext
#endif
2003-05-10 11:35:40 +00:00
2020-03-18 20:23:04 -04:00
#if (defined(_MSC_VER) && (_MSC_VER <= 1300) && !defined(BOOST_BORLANDC)) || !defined(_CPPLIB_VER) || (_CPPLIB_VER < 306)
2001-09-18 11:13:39 +00:00
// if we're using a dinkum lib that's
2002-07-27 11:43:45 +00:00
// been configured for VC6/7 then there is
2001-09-18 11:13:39 +00:00
// no iterator traits (true even for icl)
# define BOOST_NO_STD_ITERATOR_TRAITS
#endif
2004-03-22 12:58:55 +00:00
#if defined(__ICL) && (__ICL < 800) && defined(_CPPLIB_VER) && (_CPPLIB_VER <= 310)
2002-09-01 10:45:12 +00:00
// Intel C++ chokes over any non-trivial use of <locale>
// this may be an overly restrictive define, but regex fails without it:
# define BOOST_NO_STD_LOCALE
#endif
2020-07-25 19:46:13 +01:00
#if ((defined(BOOST_MSVC) && BOOST_MSVC >= 1400) || (defined(__clang__) && defined(_MSC_VER))) && (_MSC_VER < 1800)
2013-12-14 15:06:08 -05:00
// Fix for VC++ 8.0 on up ( I do not have a previous version to test )
2013-12-11 18:53:21 -05:00
// or clang-cl. If exceptions are off you must manually include the
// <exception> header before including the <typeinfo> header. Admittedly
// trying to use Boost libraries or the standard C++ libraries without
// exception support is not suggested but currently clang-cl ( v 3.4 )
// does not support exceptions and must be compiled with exceptions off.
2020-07-25 19:46:13 +01:00
#if !_HAS_EXCEPTIONS
2013-12-11 18:53:21 -05:00
#include <exception>
#endif
2010-04-20 17:48:16 +00:00
#include <typeinfo>
2020-07-25 19:46:13 +01:00
#if !_HAS_EXCEPTIONS
2013-12-11 18:53:21 -05:00
# define BOOST_NO_STD_TYPEINFO
2010-04-20 17:48:16 +00:00
#endif
2020-01-24 18:19:31 +00:00
#endif
2020-07-25 19:46:13 +01:00
#if defined(__ghs__) && !_HAS_NAMESPACE
# define BOOST_NO_STD_TYPEINFO
#endif
2010-04-20 17:48:16 +00:00
2009-05-21 15:16:39 +00:00
// C++0x headers implemented in 520 (as shipped by Microsoft)
2009-05-15 17:08:26 +00:00
//
2009-05-21 15:16:39 +00:00
#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 520
2012-03-04 03:00:49 +00:00
# define BOOST_NO_CXX11_HDR_ARRAY
# define BOOST_NO_CXX11_HDR_CODECVT
# define BOOST_NO_CXX11_HDR_FORWARD_LIST
# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
# define BOOST_NO_CXX11_HDR_RANDOM
# define BOOST_NO_CXX11_HDR_REGEX
# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR
# define BOOST_NO_CXX11_HDR_UNORDERED_MAP
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
# define BOOST_NO_CXX11_HDR_TUPLE
# define BOOST_NO_CXX11_HDR_TYPEINDEX
2012-04-22 10:57:10 +00:00
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
2012-07-12 13:57:00 +00:00
# define BOOST_NO_CXX11_NUMERIC_LIMITS
2012-04-22 10:57:10 +00:00
# define BOOST_NO_CXX11_SMART_PTR
2010-05-18 16:27:11 +00:00
#endif
2013-09-17 12:24:36 +00:00
#if ((!defined(_HAS_TR1_IMPORTS) || (_HAS_TR1_IMPORTS+0 == 0)) && !defined(BOOST_NO_CXX11_HDR_TUPLE)) \
&& (!defined(_CPPLIB_VER) || _CPPLIB_VER < 610)
2012-03-04 03:00:49 +00:00
# define BOOST_NO_CXX11_HDR_TUPLE
2009-05-21 15:16:39 +00:00
#endif
2012-11-28 15:56:45 +00:00
// C++0x headers implemented in 540 (as shipped by Microsoft)
2009-05-21 15:16:39 +00:00
//
2012-11-28 15:56:45 +00:00
#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 540
2012-03-04 03:00:49 +00:00
# define BOOST_NO_CXX11_HDR_TYPE_TRAITS
# define BOOST_NO_CXX11_HDR_CHRONO
# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
# define BOOST_NO_CXX11_HDR_FUTURE
# define BOOST_NO_CXX11_HDR_MUTEX
# define BOOST_NO_CXX11_HDR_RATIO
# define BOOST_NO_CXX11_HDR_THREAD
2012-04-22 10:57:10 +00:00
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
2019-08-23 12:45:33 +01:00
# define BOOST_NO_CXX11_HDR_EXCEPTION
2012-11-28 15:56:45 +00:00
#endif
2013-09-17 12:24:36 +00:00
// C++0x headers implemented in 610 (as shipped by Microsoft)
2012-11-28 15:56:45 +00:00
//
2013-09-17 12:24:36 +00:00
#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 610
2012-11-28 15:56:45 +00:00
# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
2013-12-13 18:51:32 +00:00
# define BOOST_NO_CXX11_HDR_ATOMIC
2014-02-06 13:29:59 +00:00
# define BOOST_NO_CXX11_ALLOCATOR
2014-02-12 18:05:29 -08:00
// 540 has std::align but it is not a conforming implementation
# define BOOST_NO_CXX11_STD_ALIGN
2013-09-17 12:24:36 +00:00
#endif
2009-05-15 17:08:26 +00:00
2017-05-17 01:07:18 -04:00
// Before 650 std::pointer_traits has a broken rebind template
#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 650
# define BOOST_NO_CXX11_POINTER_TRAITS
#elif defined(BOOST_MSVC) && BOOST_MSVC < 1910
# define BOOST_NO_CXX11_POINTER_TRAITS
#endif
2015-06-15 09:56:54 -04:00
#if defined(__has_include)
#if !__has_include(<shared_mutex>)
2015-06-09 08:32:28 -04:00
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
2016-12-15 18:29:58 +00:00
#elif (__cplusplus < 201402) && !defined(_MSC_VER)
2015-06-30 23:42:05 -04:00
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
2015-06-15 09:56:54 -04:00
#endif
2015-07-25 13:23:33 +01:00
#elif !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650)
2015-06-15 09:56:54 -04:00
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
#endif
2015-06-09 08:32:28 -04:00
2016-12-12 19:41:30 +01:00
// C++14 features
#if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650)
# define BOOST_NO_CXX14_STD_EXCHANGE
#endif
2016-10-14 20:49:48 +02:00
// C++17 features
2022-02-03 12:55:34 +00:00
#if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) \
|| ((!defined(BOOST_MSVC) || (BOOST_MSVC < 1910))) && (!defined(__clang__) || !defined(_MSC_VER) || (_MSC_VER < 1929))\
|| !defined(_HAS_CXX17) || (_HAS_CXX17 == 0)
2016-12-11 12:25:53 +01:00
# define BOOST_NO_CXX17_STD_APPLY
2017-12-09 12:44:38 +00:00
# define BOOST_NO_CXX17_ITERATOR_TRAITS
2019-04-01 18:23:26 +01:00
# define BOOST_NO_CXX17_HDR_STRING_VIEW
# define BOOST_NO_CXX17_HDR_OPTIONAL
2019-04-01 19:08:54 +01:00
# define BOOST_NO_CXX17_HDR_VARIANT
2020-07-27 18:14:55 +01:00
# define BOOST_NO_CXX17_HDR_ANY
# define BOOST_NO_CXX17_HDR_MEMORY_RESOURCE
# define BOOST_NO_CXX17_HDR_CHARCONV
# define BOOST_NO_CXX17_HDR_EXECUTION
# define BOOST_NO_CXX17_HDR_FILESYSTEM
2017-04-05 19:57:31 +02:00
#endif
2018-04-04 18:20:47 +01:00
#if !defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) || !defined(_HAS_CXX17) || (_HAS_CXX17 == 0) || !defined(_MSVC_STL_UPDATE) || (_MSVC_STL_UPDATE < 201709)
2016-10-14 20:49:48 +02:00
# define BOOST_NO_CXX17_STD_INVOKE
2017-12-09 12:44:38 +00:00
#endif
2022-02-03 18:54:20 +00:00
// C++20 features which aren't configured in suffix.hpp correctly:
2021-03-05 10:51:17 +00:00
#if !defined(_MSVC_STL_UPDATE) || (_MSVC_STL_UPDATE < 202008L) || !defined(_HAS_CXX20) || (_HAS_CXX20 == 0)
2021-03-04 20:38:19 +00:00
# define BOOST_NO_CXX20_HDR_CONCEPTS
#endif
2017-12-09 12:44:38 +00:00
#if !(!defined(_CPPLIB_VER) || (_CPPLIB_VER < 650) || !defined(BOOST_MSVC) || (BOOST_MSVC < 1912) || !defined(_HAS_CXX17) || (_HAS_CXX17 == 0))
// Deprecated std::iterator:
# define BOOST_NO_STD_ITERATOR
2016-10-14 20:49:48 +02:00
#endif
2014-08-22 18:50:05 +01:00
#if defined(BOOST_INTEL) && (BOOST_INTEL <= 1400)
// Intel's compiler can't handle this header yet:
# define BOOST_NO_CXX11_HDR_ATOMIC
#endif
2014-02-11 18:20:31 +02:00
// 520..610 have std::addressof, but it doesn't support functions
//
2015-07-20 19:58:59 +02:00
#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 650
2014-02-11 18:20:31 +02:00
# define BOOST_NO_CXX11_ADDRESSOF
2015-07-20 19:58:59 +02:00
#endif
2014-02-11 18:20:31 +02:00
2015-07-27 09:23:25 +01:00
// Bug specific to VC14,
// See https://connect.microsoft.com/VisualStudio/feedback/details/1348277/link-error-when-using-std-codecvt-utf8-utf16-char16-t
// and discussion here: http://blogs.msdn.com/b/vcblog/archive/2014/11/12/visual-studio-2015-preview-now-available.aspx?PageIndex=2
2021-08-17 17:32:09 +01:00
#if defined(_CPPLIB_VER) && (_CPPLIB_VER == 650) && (!defined(_MSVC_STL_VERSION) || (_MSVC_STL_VERSION < 142))
# define BOOST_NO_CXX11_HDR_CODECVT
#endif
#if (_MSVC_LANG > 201700) && !defined(BOOST_NO_CXX11_HDR_CODECVT)
//
// <codecvt> is deprected as of C++17, and by default MSVC emits hard errors
// if you try to use it, so mark it as unavailable:
//
2015-07-27 09:23:25 +01:00
# define BOOST_NO_CXX11_HDR_CODECVT
#endif
2015-08-11 10:05:33 +02:00
#if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 650)
2017-04-09 08:59:41 +02:00
// If _HAS_AUTO_PTR_ETC is defined to 0, std::auto_ptr and std::random_shuffle are not available.
2015-08-11 10:05:33 +02:00
// See https://www.visualstudio.com/en-us/news/vs2015-vs.aspx#C++
// and http://blogs.msdn.com/b/vcblog/archive/2015/06/19/c-11-14-17-features-in-vs-2015-rtm.aspx
# if defined(_HAS_AUTO_PTR_ETC) && (_HAS_AUTO_PTR_ETC == 0)
# define BOOST_NO_AUTO_PTR
2017-04-09 08:59:41 +02:00
# define BOOST_NO_CXX98_RANDOM_SHUFFLE
2017-04-17 18:41:44 +01:00
# define BOOST_NO_CXX98_FUNCTION_BASE
# define BOOST_NO_CXX98_BINDERS
2015-08-11 10:05:33 +02:00
# endif
#endif
2021-03-04 20:38:19 +00:00
//
// Things deprecated in C++20:
//
#if defined(_HAS_CXX20)
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
#endif
2015-08-11 10:05:33 +02:00
2016-12-27 19:34:05 +00:00
//
// Things not supported by the CLR:
#ifdef _M_CEE
#ifndef BOOST_NO_CXX11_HDR_MUTEX
# define BOOST_NO_CXX11_HDR_MUTEX
#endif
#ifndef BOOST_NO_CXX11_HDR_ATOMIC
# define BOOST_NO_CXX11_HDR_ATOMIC
#endif
#ifndef BOOST_NO_CXX11_HDR_FUTURE
# define BOOST_NO_CXX11_HDR_FUTURE
#endif
#ifndef BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
#endif
#ifndef BOOST_NO_CXX11_HDR_THREAD
# define BOOST_NO_CXX11_HDR_THREAD
#endif
#ifndef BOOST_NO_CXX14_HDR_SHARED_MUTEX
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
#endif
#ifndef BOOST_NO_CXX14_STD_EXCHANGE
# define BOOST_NO_CXX14_STD_EXCHANGE
#endif
#ifndef BOOST_NO_FENV_H
# define BOOST_NO_FENV_H
#endif
#endif
2002-11-09 11:54:05 +00:00
#ifdef _CPPLIB_VER
# define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER
#else
# define BOOST_DINKUMWARE_STDLIB 1
#endif
2001-09-18 11:13:39 +00:00
#ifdef _CPPLIB_VER
# define BOOST_STDLIB "Dinkumware standard library version " BOOST_STRINGIZE(_CPPLIB_VER)
#else
# define BOOST_STDLIB "Dinkumware standard library version 1.x"
#endif