2005-12-08 03:23:02 +00:00
|
|
|
// (C) Copyright John Maddock 2001.
|
|
|
|
|
// (C) Copyright Jens Maurer 2001.
|
|
|
|
|
// 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.
|
|
|
|
|
|
|
|
|
|
// config for libstdc++ v3
|
|
|
|
|
// not much to go in here:
|
|
|
|
|
|
2011-01-14 03:01:26 +00:00
|
|
|
#define BOOST_GNU_STDLIB 1
|
|
|
|
|
|
2004-05-03 11:26:53 +00:00
|
|
|
#ifdef __GLIBCXX__
|
|
|
|
|
#define BOOST_STDLIB "GNU libstdc++ version " BOOST_STRINGIZE(__GLIBCXX__)
|
|
|
|
|
#else
|
2001-09-18 11:13:39 +00:00
|
|
|
#define BOOST_STDLIB "GNU libstdc++ version " BOOST_STRINGIZE(__GLIBCPP__)
|
2004-05-03 11:26:53 +00:00
|
|
|
#endif
|
2001-09-18 11:13:39 +00:00
|
|
|
|
2004-05-03 11:26:53 +00:00
|
|
|
#if !defined(_GLIBCPP_USE_WCHAR_T) && !defined(_GLIBCXX_USE_WCHAR_T)
|
2001-09-18 11:13:39 +00:00
|
|
|
# define BOOST_NO_CWCHAR
|
|
|
|
|
# define BOOST_NO_CWCTYPE
|
2001-09-20 19:38:55 +00:00
|
|
|
# define BOOST_NO_STD_WSTRING
|
2002-07-28 11:06:51 +00:00
|
|
|
# define BOOST_NO_STD_WSTREAMBUF
|
2001-09-18 11:13:39 +00:00
|
|
|
#endif
|
2004-06-27 15:31:23 +00:00
|
|
|
|
2005-07-13 15:24:04 +00:00
|
|
|
#if defined(__osf__) && !defined(_REENTRANT) \
|
|
|
|
|
&& ( defined(_GLIBCXX_HAVE_GTHR_DEFAULT) || defined(_GLIBCPP_HAVE_GTHR_DEFAULT) )
|
|
|
|
|
// GCC 3 on Tru64 forces the definition of _REENTRANT when any std lib header
|
2004-10-07 13:07:33 +00:00
|
|
|
// file is included, therefore for consistency we define it here as well.
|
|
|
|
|
# define _REENTRANT
|
|
|
|
|
#endif
|
|
|
|
|
|
2004-06-27 15:31:23 +00:00
|
|
|
#ifdef __GLIBCXX__ // gcc 3.4 and greater:
|
2005-09-03 11:04:21 +00:00
|
|
|
# if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
|
2011-12-24 16:19:41 +00:00
|
|
|
|| defined(_GLIBCXX__PTHREADS) \
|
2012-01-20 17:36:27 +00:00
|
|
|
|| defined(_GLIBCXX_HAS_GTHREADS) \
|
2013-04-18 16:14:28 +00:00
|
|
|
|| defined(_WIN32) \
|
2014-11-16 13:28:57 +13:00
|
|
|
|| defined(_AIX) \
|
|
|
|
|
|| defined(__HAIKU__)
|
2005-12-08 03:23:02 +00:00
|
|
|
//
|
2004-06-27 15:31:23 +00:00
|
|
|
// If the std lib has thread support turned on, then turn it on in Boost
|
|
|
|
|
// as well. We do this because some gcc-3.4 std lib headers define _REENTANT
|
|
|
|
|
// while others do not...
|
2005-12-08 03:23:02 +00:00
|
|
|
//
|
2004-06-27 15:31:23 +00:00
|
|
|
# define BOOST_HAS_THREADS
|
|
|
|
|
# else
|
|
|
|
|
# define BOOST_DISABLE_THREADS
|
|
|
|
|
# endif
|
2005-09-03 11:04:21 +00:00
|
|
|
#elif defined(__GLIBCPP__) \
|
2005-12-08 03:23:02 +00:00
|
|
|
&& !defined(_GLIBCPP_HAVE_GTHR_DEFAULT) \
|
|
|
|
|
&& !defined(_GLIBCPP__PTHREADS)
|
2005-01-31 17:06:43 +00:00
|
|
|
// disable thread support if the std lib was built single threaded:
|
|
|
|
|
# define BOOST_DISABLE_THREADS
|
2004-06-27 15:31:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
2005-07-10 10:22:20 +00:00
|
|
|
#if (defined(linux) || defined(__linux) || defined(__linux__)) && defined(__arm__) && defined(_GLIBCPP_HAVE_GTHR_DEFAULT)
|
2005-12-08 03:23:02 +00:00
|
|
|
// linux on arm apparently doesn't define _REENTRANT
|
2005-07-10 10:22:20 +00:00
|
|
|
// so just turn on threading support whenever the std lib is thread safe:
|
|
|
|
|
# define BOOST_HAS_THREADS
|
|
|
|
|
#endif
|
|
|
|
|
|
2004-05-03 11:26:53 +00:00
|
|
|
#if !defined(_GLIBCPP_USE_LONG_LONG) \
|
|
|
|
|
&& !defined(_GLIBCXX_USE_LONG_LONG)\
|
|
|
|
|
&& defined(BOOST_HAS_LONG_LONG)
|
2001-10-31 19:36:49 +00:00
|
|
|
// May have been set by compiler/*.hpp, but "long long" without library
|
|
|
|
|
// support is useless.
|
|
|
|
|
# undef BOOST_HAS_LONG_LONG
|
|
|
|
|
#endif
|
2006-01-23 20:50:27 +00:00
|
|
|
|
2011-01-30 06:24:30 +00:00
|
|
|
// Apple doesn't seem to reliably defined a *unix* macro
|
|
|
|
|
#if !defined(CYGWIN) && ( defined(__unix__) \
|
|
|
|
|
|| defined(__unix) \
|
|
|
|
|
|| defined(unix) \
|
|
|
|
|
|| defined(__APPLE__) \
|
|
|
|
|
|| defined(__APPLE) \
|
|
|
|
|
|| defined(APPLE))
|
|
|
|
|
# include <unistd.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-09-02 06:21:57 -04:00
|
|
|
#ifndef __VXWORKS__ // VxWorks uses Dinkum, not GNU STL with GCC
|
2006-01-23 20:50:27 +00:00
|
|
|
#if defined(__GLIBCXX__) || (defined(__GLIBCPP__) && __GLIBCPP__>=20020514) // GCC >= 3.1.0
|
|
|
|
|
# define BOOST_STD_EXTENSION_NAMESPACE __gnu_cxx
|
|
|
|
|
# define BOOST_HAS_SLIST
|
|
|
|
|
# define BOOST_HAS_HASH
|
|
|
|
|
# define BOOST_SLIST_HEADER <ext/slist>
|
2008-07-14 18:43:58 +00:00
|
|
|
# if !defined(__GNUC__) || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3)
|
2008-07-09 14:25:40 +00:00
|
|
|
# define BOOST_HASH_SET_HEADER <ext/hash_set>
|
|
|
|
|
# define BOOST_HASH_MAP_HEADER <ext/hash_map>
|
|
|
|
|
# else
|
|
|
|
|
# define BOOST_HASH_SET_HEADER <backward/hash_set>
|
|
|
|
|
# define BOOST_HASH_MAP_HEADER <backward/hash_map>
|
|
|
|
|
# endif
|
2006-01-23 20:50:27 +00:00
|
|
|
#endif
|
2017-09-02 06:21:57 -04:00
|
|
|
#endif
|
2008-12-22 09:45:31 +00:00
|
|
|
|
2020-12-18 10:53:01 +00:00
|
|
|
#if defined(__has_include)
|
|
|
|
|
#if defined(BOOST_HAS_HASH)
|
2021-03-12 19:46:48 +00:00
|
|
|
#if !__has_include(BOOST_HASH_SET_HEADER) || (__GNUC__ >= 10)
|
2021-03-12 19:33:04 +00:00
|
|
|
#undef BOOST_HAS_HASH
|
2020-12-18 10:53:01 +00:00
|
|
|
#undef BOOST_HAS_SET_HEADER
|
|
|
|
|
#undef BOOST_HAS_MAP_HEADER
|
|
|
|
|
#endif
|
|
|
|
|
#if !__has_include(BOOST_SLIST_HEADER)
|
|
|
|
|
#undef BOOST_HAS_SLIST
|
|
|
|
|
#undef BOOST_HAS_SLIST_HEADER
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2014-10-05 13:41:42 +01:00
|
|
|
//
|
|
|
|
|
// Decide whether we have C++11 support turned on:
|
|
|
|
|
//
|
|
|
|
|
#if defined(__GXX_EXPERIMENTAL_CXX0X__) || (__cplusplus >= 201103)
|
|
|
|
|
# define BOOST_LIBSTDCXX11
|
|
|
|
|
#endif
|
2016-10-14 20:49:48 +02:00
|
|
|
|
2014-10-05 13:41:42 +01:00
|
|
|
//
|
|
|
|
|
// Decide which version of libstdc++ we have, normally
|
2017-01-17 23:21:37 +00:00
|
|
|
// libstdc++ C++0x support is detected via __GNUC__, __GNUC_MINOR__, and possibly
|
|
|
|
|
// __GNUC_PATCHLEVEL__ at the suggestion of Jonathan Wakely, one of the libstdc++
|
2009-05-16 18:41:33 +00:00
|
|
|
// developers. He also commented:
|
2009-05-15 17:08:26 +00:00
|
|
|
//
|
2009-05-16 18:41:33 +00:00
|
|
|
// "I'm not sure how useful __GLIBCXX__ is for your purposes, for instance in
|
|
|
|
|
// GCC 4.2.4 it is set to 20080519 but in GCC 4.3.0 it is set to 20080305.
|
|
|
|
|
// Although 4.3.0 was released earlier than 4.2.4, it has better C++0x support
|
|
|
|
|
// than any release in the 4.2 series."
|
|
|
|
|
//
|
2017-01-17 23:21:37 +00:00
|
|
|
// Another resource for understanding libstdc++ features is:
|
2009-05-16 18:41:33 +00:00
|
|
|
// http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#manual.intro.status.standard.200x
|
2014-10-05 13:41:42 +01:00
|
|
|
//
|
|
|
|
|
// However, using the GCC version number fails when the compiler is clang since this
|
|
|
|
|
// only ever claims to emulate GCC-4.2, see https://svn.boost.org/trac/boost/ticket/7473
|
|
|
|
|
// for a long discussion on this issue. What we can do though is use clang's __has_include
|
|
|
|
|
// to detect the presence of a C++11 header that was introduced with a specific GCC release.
|
|
|
|
|
// We still have to be careful though as many such headers were buggy and/or incomplete when
|
|
|
|
|
// first introduced, so we only check for headers that were fully featured from day 1, and then
|
|
|
|
|
// use that to infer the underlying GCC version:
|
|
|
|
|
//
|
|
|
|
|
#ifdef __clang__
|
|
|
|
|
|
2022-11-20 18:33:13 +00:00
|
|
|
#ifdef _GLIBCXX_RELEASE
|
|
|
|
|
# define BOOST_LIBSTDCXX_VERSION (_GLIBCXX_RELEASE * 10000 + 100)
|
|
|
|
|
#else
|
|
|
|
|
//
|
|
|
|
|
// We figure out which gcc version issued this std lib
|
|
|
|
|
// by checking which headers are available:
|
|
|
|
|
//
|
2022-08-31 10:13:16 +03:00
|
|
|
#if __has_include(<expected>)
|
|
|
|
|
# define BOOST_LIBSTDCXX_VERSION 120100
|
|
|
|
|
#elif __has_include(<source_location>)
|
2022-01-21 00:38:53 +03:00
|
|
|
# define BOOST_LIBSTDCXX_VERSION 110100
|
|
|
|
|
#elif __has_include(<compare>)
|
2020-05-23 19:46:40 +03:00
|
|
|
# define BOOST_LIBSTDCXX_VERSION 100100
|
|
|
|
|
#elif __has_include(<memory_resource>)
|
2019-10-28 17:59:35 +00:00
|
|
|
# define BOOST_LIBSTDCXX_VERSION 90100
|
|
|
|
|
#elif __has_include(<charconv>)
|
|
|
|
|
# define BOOST_LIBSTDCXX_VERSION 80100
|
|
|
|
|
#elif __has_include(<variant>)
|
|
|
|
|
# define BOOST_LIBSTDCXX_VERSION 70100
|
|
|
|
|
#elif __has_include(<experimental/memory_resource>)
|
2016-10-14 20:49:48 +02:00
|
|
|
# define BOOST_LIBSTDCXX_VERSION 60100
|
|
|
|
|
#elif __has_include(<experimental/any>)
|
2015-04-24 17:10:13 +01:00
|
|
|
# define BOOST_LIBSTDCXX_VERSION 50100
|
2014-10-08 13:37:18 +01:00
|
|
|
#elif __has_include(<shared_mutex>)
|
|
|
|
|
# define BOOST_LIBSTDCXX_VERSION 40900
|
|
|
|
|
#elif __has_include(<ext/cmath>)
|
|
|
|
|
# define BOOST_LIBSTDCXX_VERSION 40800
|
2015-07-07 19:22:38 +01:00
|
|
|
#elif __has_include(<scoped_allocator>)
|
2014-10-05 13:41:42 +01:00
|
|
|
# define BOOST_LIBSTDCXX_VERSION 40700
|
2014-10-14 12:46:21 +09:00
|
|
|
#elif __has_include(<typeindex>)
|
2014-10-08 13:37:18 +01:00
|
|
|
# define BOOST_LIBSTDCXX_VERSION 40600
|
2014-10-14 12:46:21 +09:00
|
|
|
#elif __has_include(<future>)
|
2014-10-08 13:37:18 +01:00
|
|
|
# define BOOST_LIBSTDCXX_VERSION 40500
|
2014-10-14 12:46:21 +09:00
|
|
|
#elif __has_include(<ratio>)
|
2014-10-08 13:37:18 +01:00
|
|
|
# define BOOST_LIBSTDCXX_VERSION 40400
|
2014-10-14 12:46:21 +09:00
|
|
|
#elif __has_include(<array>)
|
2014-10-08 13:37:18 +01:00
|
|
|
# define BOOST_LIBSTDCXX_VERSION 40300
|
2014-10-05 13:41:42 +01:00
|
|
|
#endif
|
2022-11-20 18:33:13 +00:00
|
|
|
#endif
|
2021-03-19 17:37:28 +00:00
|
|
|
//
|
|
|
|
|
// If BOOST_HAS_FLOAT128 is set, now that we know the std lib is libstdc++3, check to see if the std lib is
|
|
|
|
|
// configured to support this type. If not disable it:
|
|
|
|
|
//
|
|
|
|
|
#if defined(BOOST_HAS_FLOAT128) && !defined(_GLIBCXX_USE_FLOAT128)
|
|
|
|
|
# undef BOOST_HAS_FLOAT128
|
|
|
|
|
#endif
|
2016-10-14 20:49:48 +02:00
|
|
|
|
2021-03-12 19:27:19 +00:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION >= 100000) && defined(BOOST_HAS_HASH)
|
|
|
|
|
//
|
|
|
|
|
// hash_set/hash_map deprecated and have terminal bugs:
|
|
|
|
|
//
|
2021-03-12 19:33:04 +00:00
|
|
|
#undef BOOST_HAS_HASH
|
2021-03-12 19:27:19 +00:00
|
|
|
#undef BOOST_HAS_SET_HEADER
|
|
|
|
|
#undef BOOST_HAS_MAP_HEADER
|
|
|
|
|
#endif
|
|
|
|
|
|
2016-10-14 20:49:48 +02:00
|
|
|
|
2021-03-12 19:27:19 +00:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION >= 100000) && defined(BOOST_HAS_HASH)
|
|
|
|
|
//
|
|
|
|
|
// hash_set/hash_map deprecated and have terminal bugs:
|
|
|
|
|
//
|
2021-03-12 19:33:04 +00:00
|
|
|
#undef BOOST_HAS_HASH
|
2021-03-12 19:27:19 +00:00
|
|
|
#undef BOOST_HAS_SET_HEADER
|
|
|
|
|
#undef BOOST_HAS_MAP_HEADER
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-03-12 19:46:48 +00:00
|
|
|
|
2017-02-26 13:01:11 +00:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 50100)
|
|
|
|
|
// libstdc++ does not define this function as it's deprecated in C++11, but clang still looks for it,
|
|
|
|
|
// defining it here is a terrible cludge, but should get things working:
|
|
|
|
|
extern "C" char *gets (char *__s);
|
|
|
|
|
#endif
|
2017-05-19 13:38:02 +01:00
|
|
|
//
|
|
|
|
|
// clang is unable to parse some GCC headers, add those workarounds here:
|
|
|
|
|
//
|
|
|
|
|
#if BOOST_LIBSTDCXX_VERSION < 50000
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_REGEX
|
|
|
|
|
#endif
|
|
|
|
|
//
|
|
|
|
|
// GCC 4.7.x has no __cxa_thread_atexit which
|
|
|
|
|
// thread_local objects require for cleanup:
|
|
|
|
|
//
|
|
|
|
|
#if BOOST_LIBSTDCXX_VERSION < 40800
|
|
|
|
|
# define BOOST_NO_CXX11_THREAD_LOCAL
|
|
|
|
|
#endif
|
2017-05-19 18:11:29 +01:00
|
|
|
//
|
|
|
|
|
// Early clang versions can handle <chrono>, not exactly sure which versions
|
2017-05-19 19:18:40 +01:00
|
|
|
// but certainly up to clang-3.8 and gcc-4.6:
|
2017-05-19 18:11:29 +01:00
|
|
|
//
|
2017-05-19 19:18:40 +01:00
|
|
|
#if (__clang_major__ < 5)
|
|
|
|
|
# if BOOST_LIBSTDCXX_VERSION < 40800
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_FUTURE
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_MUTEX
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
|
2017-05-19 18:11:29 +01:00
|
|
|
# define BOOST_NO_CXX11_HDR_CHRONO
|
|
|
|
|
# endif
|
|
|
|
|
#endif
|
2017-02-26 13:01:11 +00:00
|
|
|
|
2014-10-05 13:41:42 +01:00
|
|
|
//
|
|
|
|
|
// GCC 4.8 and 9 add working versions of <atomic> and <regex> respectively.
|
|
|
|
|
// However, we have no test for these as the headers were present but broken
|
|
|
|
|
// in early GCC versions.
|
|
|
|
|
//
|
|
|
|
|
#endif
|
|
|
|
|
|
2015-02-21 17:30:56 +00:00
|
|
|
#if defined(__SUNPRO_CC) && (__SUNPRO_CC >= 0x5130) && (__cplusplus >= 201103L)
|
|
|
|
|
//
|
|
|
|
|
// Oracle Solaris compiler uses it's own verison of libstdc++ but doesn't
|
|
|
|
|
// set __GNUC__
|
|
|
|
|
//
|
2016-09-04 16:04:08 +00:00
|
|
|
#if __SUNPRO_CC >= 0x5140
|
|
|
|
|
#define BOOST_LIBSTDCXX_VERSION 50100
|
|
|
|
|
#else
|
2015-02-21 17:30:56 +00:00
|
|
|
#define BOOST_LIBSTDCXX_VERSION 40800
|
|
|
|
|
#endif
|
2016-09-04 16:04:08 +00:00
|
|
|
#endif
|
2015-02-21 17:30:56 +00:00
|
|
|
|
2014-10-05 13:41:42 +01:00
|
|
|
#if !defined(BOOST_LIBSTDCXX_VERSION)
|
|
|
|
|
# define BOOST_LIBSTDCXX_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
|
|
|
|
#endif
|
2009-05-16 18:41:33 +00:00
|
|
|
|
2015-06-30 01:23:02 +09:00
|
|
|
// std::auto_ptr isn't provided with _GLIBCXX_DEPRECATED=0 (GCC 4.5 and earlier)
|
|
|
|
|
// or _GLIBCXX_USE_DEPRECATED=0 (GCC 4.6 and later).
|
|
|
|
|
#if defined(BOOST_LIBSTDCXX11)
|
|
|
|
|
# if BOOST_LIBSTDCXX_VERSION < 40600
|
|
|
|
|
# if !_GLIBCXX_DEPRECATED
|
|
|
|
|
# define BOOST_NO_AUTO_PTR
|
|
|
|
|
# endif
|
2022-11-12 13:32:07 +01:00
|
|
|
# elif !defined(_GLIBCXX_USE_DEPRECATED) || !_GLIBCXX_USE_DEPRECATED
|
2015-06-30 01:23:02 +09:00
|
|
|
# define BOOST_NO_AUTO_PTR
|
2020-09-14 14:49:40 +02:00
|
|
|
# define BOOST_NO_CXX98_BINDERS
|
2015-06-30 01:23:02 +09:00
|
|
|
# endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2009-05-16 18:41:33 +00:00
|
|
|
// C++0x headers in GCC 4.3.0 and later
|
|
|
|
|
//
|
2014-10-05 13:41:42 +01:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 40300) || !defined(BOOST_LIBSTDCXX11)
|
2012-03-04 03:00:49 +00:00
|
|
|
# define BOOST_NO_CXX11_HDR_ARRAY
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_TUPLE
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_UNORDERED_MAP
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_UNORDERED_SET
|
2012-04-22 10:57:10 +00:00
|
|
|
# define BOOST_NO_CXX11_HDR_FUNCTIONAL
|
2008-12-22 09:45:31 +00:00
|
|
|
#endif
|
|
|
|
|
|
2009-05-16 18:41:33 +00:00
|
|
|
// C++0x headers in GCC 4.4.0 and later
|
2009-05-15 17:08:26 +00:00
|
|
|
//
|
2014-10-05 13:41:42 +01:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 40400) || !defined(BOOST_LIBSTDCXX11)
|
2012-03-04 03:00:49 +00:00
|
|
|
# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_FORWARD_LIST
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_MUTEX
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_RATIO
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR
|
2012-04-30 11:14:44 +00:00
|
|
|
# define BOOST_NO_CXX11_SMART_PTR
|
2019-10-28 19:30:59 +00:00
|
|
|
# define BOOST_NO_CXX11_HDR_EXCEPTION
|
2011-03-15 13:17:46 +00:00
|
|
|
#else
|
|
|
|
|
# define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
|
|
|
|
|
# define BOOST_HAS_TR1_COMPLEX_OVERLOADS
|
2009-05-15 17:08:26 +00:00
|
|
|
#endif
|
|
|
|
|
|
2010-09-26 09:30:38 +00:00
|
|
|
// C++0x features in GCC 4.5.0 and later
|
|
|
|
|
//
|
2014-10-05 13:41:42 +01:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 40500) || !defined(BOOST_LIBSTDCXX11)
|
2012-07-12 13:57:00 +00:00
|
|
|
# define BOOST_NO_CXX11_NUMERIC_LIMITS
|
2012-03-04 03:00:49 +00:00
|
|
|
# define BOOST_NO_CXX11_HDR_FUTURE
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_RANDOM
|
2010-09-26 09:30:38 +00:00
|
|
|
#endif
|
|
|
|
|
|
2012-04-22 10:57:10 +00:00
|
|
|
// C++0x features in GCC 4.6.0 and later
|
2011-03-30 18:24:18 +00:00
|
|
|
//
|
2014-10-05 13:41:42 +01:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 40600) || !defined(BOOST_LIBSTDCXX11)
|
2012-03-04 03:00:49 +00:00
|
|
|
# define BOOST_NO_CXX11_HDR_TYPEINDEX
|
2014-02-11 18:20:31 +02:00
|
|
|
# define BOOST_NO_CXX11_ADDRESSOF
|
2017-07-09 17:06:34 +03:00
|
|
|
# define BOOST_NO_CXX17_ITERATOR_TRAITS
|
2011-03-30 18:24:18 +00:00
|
|
|
#endif
|
2012-04-25 17:18:23 +00:00
|
|
|
|
|
|
|
|
// C++0x features in GCC 4.7.0 and later
|
|
|
|
|
//
|
2014-10-05 13:41:42 +01:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 40700) || !defined(BOOST_LIBSTDCXX11)
|
2014-03-22 19:38:49 +03:00
|
|
|
// Note that although <chrono> existed prior to 4.7, "steady_clock" is spelled "monotonic_clock"
|
2017-01-17 23:21:37 +00:00
|
|
|
// so 4.7.0 is the first truly conforming one.
|
2012-04-27 11:32:39 +00:00
|
|
|
# define BOOST_NO_CXX11_HDR_CHRONO
|
2012-04-25 17:18:23 +00:00
|
|
|
# define BOOST_NO_CXX11_ALLOCATOR
|
2017-05-17 01:07:18 -04:00
|
|
|
# define BOOST_NO_CXX11_POINTER_TRAITS
|
2013-12-13 09:53:06 +00:00
|
|
|
#endif
|
2014-10-05 13:41:42 +01:00
|
|
|
// C++0x features in GCC 4.8.0 and later
|
2013-12-13 09:53:06 +00:00
|
|
|
//
|
2014-10-05 13:41:42 +01:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 40800) || !defined(BOOST_LIBSTDCXX11)
|
2013-12-13 09:53:06 +00:00
|
|
|
// Note that although <atomic> existed prior to gcc 4.8 it was largely unimplemented for many types:
|
2013-12-12 19:32:06 +00:00
|
|
|
# define BOOST_NO_CXX11_HDR_ATOMIC
|
2014-10-08 18:58:15 +01:00
|
|
|
# define BOOST_NO_CXX11_HDR_THREAD
|
2012-04-25 17:18:23 +00:00
|
|
|
#endif
|
2015-04-24 17:10:13 +01:00
|
|
|
// C++0x features in GCC 4.9.0 and later
|
|
|
|
|
//
|
2014-10-05 13:41:42 +01:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 40900) || !defined(BOOST_LIBSTDCXX11)
|
2014-03-25 17:12:46 +00:00
|
|
|
// Although <regex> is present and compilable against, the actual implementation is not functional
|
|
|
|
|
// even for the simplest patterns such as "\d" or "[0-9]". This is the case at least in gcc up to 4.8, inclusively.
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_REGEX
|
2016-12-15 10:35:00 +00:00
|
|
|
#endif
|
|
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 40900) || (__cplusplus <= 201103)
|
2016-12-12 19:41:30 +01:00
|
|
|
# define BOOST_NO_CXX14_STD_EXCHANGE
|
2014-03-25 17:12:46 +00:00
|
|
|
#endif
|
2014-10-12 13:20:11 +01:00
|
|
|
|
2009-05-15 17:08:26 +00:00
|
|
|
//
|
2015-04-24 17:10:13 +01:00
|
|
|
// C++0x features in GCC 5.1 and later
|
|
|
|
|
//
|
|
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 50100) || !defined(BOOST_LIBSTDCXX11)
|
2012-03-04 03:00:49 +00:00
|
|
|
# define BOOST_NO_CXX11_HDR_TYPE_TRAITS
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_CODECVT
|
2012-04-22 10:57:10 +00:00
|
|
|
# define BOOST_NO_CXX11_ATOMIC_SMART_PTR
|
2014-02-11 18:20:31 +02:00
|
|
|
# define BOOST_NO_CXX11_STD_ALIGN
|
2015-04-24 17:10:13 +01:00
|
|
|
#endif
|
2009-05-15 17:08:26 +00:00
|
|
|
|
2016-10-14 20:49:48 +02:00
|
|
|
//
|
2018-04-03 19:08:57 +01:00
|
|
|
// C++17 features in GCC 7.1 and later
|
2016-10-14 20:49:48 +02:00
|
|
|
//
|
2016-12-11 12:25:53 +01:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 70100) || (__cplusplus <= 201402L)
|
2018-04-03 19:08:57 +01:00
|
|
|
# define BOOST_NO_CXX17_STD_INVOKE
|
2016-12-11 12:25:53 +01:00
|
|
|
# define BOOST_NO_CXX17_STD_APPLY
|
2018-08-04 19:21:21 +01:00
|
|
|
# define BOOST_NO_CXX17_HDR_OPTIONAL
|
2018-08-16 11:25:16 +01:00
|
|
|
# define BOOST_NO_CXX17_HDR_STRING_VIEW
|
2019-04-01 19:08:54 +01:00
|
|
|
# define BOOST_NO_CXX17_HDR_VARIANT
|
2016-12-11 12:25:53 +01:00
|
|
|
#endif
|
2016-10-14 20:49:48 +02:00
|
|
|
|
2015-06-15 09:56:54 -04:00
|
|
|
#if defined(__has_include)
|
|
|
|
|
#if !__has_include(<shared_mutex>)
|
|
|
|
|
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
|
2015-06-30 23:42:05 -04:00
|
|
|
#elif __cplusplus <= 201103
|
|
|
|
|
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
|
2015-06-15 09:56:54 -04:00
|
|
|
#endif
|
2020-07-29 18:57:56 +01:00
|
|
|
//
|
|
|
|
|
// <execution> has a dependency to Intel's thread building blocks:
|
|
|
|
|
// unless these are installed seperately, including <execution> leads
|
|
|
|
|
// to inscrutable errors inside libstdc++'s own headers.
|
|
|
|
|
//
|
2020-07-29 19:12:24 +01:00
|
|
|
#if (BOOST_LIBSTDCXX_VERSION < 100100)
|
|
|
|
|
#if !__has_include(<tbb/tbb.h>)
|
2020-07-29 18:57:56 +01:00
|
|
|
#define BOOST_NO_CXX17_HDR_EXECUTION
|
|
|
|
|
#endif
|
2020-07-29 19:12:24 +01:00
|
|
|
#endif
|
2015-06-30 23:42:05 -04:00
|
|
|
#elif __cplusplus < 201402 || (BOOST_LIBSTDCXX_VERSION < 40900) || !defined(BOOST_LIBSTDCXX11)
|
2015-06-15 09:56:54 -04:00
|
|
|
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
|
|
|
|
|
#endif
|
|
|
|
|
|
2020-07-28 19:07:19 +01:00
|
|
|
#if BOOST_LIBSTDCXX_VERSION < 100100
|
|
|
|
|
//
|
|
|
|
|
// The header may be present but is incomplete:
|
|
|
|
|
//
|
|
|
|
|
# define BOOST_NO_CXX17_HDR_CHARCONV
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-03-04 20:38:19 +00:00
|
|
|
#if BOOST_LIBSTDCXX_VERSION < 110000
|
|
|
|
|
//
|
|
|
|
|
// Header <bit> may be present but lacks std::bit_cast:
|
|
|
|
|
//
|
|
|
|
|
#define BOOST_NO_CXX20_HDR_BIT
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-05-10 18:03:38 +01:00
|
|
|
#if BOOST_LIBSTDCXX_VERSION >= 120000
|
|
|
|
|
//
|
2022-05-12 12:32:08 +01:00
|
|
|
// Unary function is now deprecated in C++11 and later:
|
2022-05-10 18:03:38 +01:00
|
|
|
//
|
2022-05-12 12:32:08 +01:00
|
|
|
#if __cplusplus >= 201103L
|
2022-05-10 18:03:38 +01:00
|
|
|
#define BOOST_NO_CXX98_FUNCTION_BASE
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-03-04 20:38:19 +00:00
|
|
|
#ifndef __cpp_impl_coroutine
|
|
|
|
|
# define BOOST_NO_CXX20_HDR_COROUTINE
|
|
|
|
|
#endif
|
|
|
|
|
|
2021-03-05 12:05:31 +00:00
|
|
|
//
|
|
|
|
|
// These next defines are mostly for older clang versions with a newer libstdc++ :
|
|
|
|
|
//
|
|
|
|
|
#if !defined(__cpp_lib_concepts)
|
|
|
|
|
#if !defined(BOOST_NO_CXX20_HDR_COMPARE)
|
|
|
|
|
# define BOOST_NO_CXX20_HDR_COMPARE
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(BOOST_NO_CXX20_HDR_CONCEPTS)
|
|
|
|
|
# define BOOST_NO_CXX20_HDR_CONCEPTS
|
|
|
|
|
#endif
|
2021-03-05 12:13:49 +00:00
|
|
|
#if !defined(BOOST_NO_CXX20_HDR_SPAN)
|
|
|
|
|
# define BOOST_NO_CXX20_HDR_SPAN
|
|
|
|
|
#endif
|
|
|
|
|
#if !defined(BOOST_NO_CXX20_HDR_RANGES)
|
|
|
|
|
# define BOOST_NO_CXX20_HDR_RANGES
|
|
|
|
|
#endif
|
2021-03-05 12:05:31 +00:00
|
|
|
#endif
|
|
|
|
|
|
2022-05-10 17:56:56 +01:00
|
|
|
#if defined(__clang__)
|
|
|
|
|
#if (__clang_major__ < 11) && !defined(BOOST_NO_CXX20_HDR_RANGES)
|
|
|
|
|
# define BOOST_NO_CXX20_HDR_RANGES
|
|
|
|
|
#endif
|
|
|
|
|
#if (__clang_major__ < 10) && (BOOST_LIBSTDCXX_VERSION >= 110000) && !defined(BOOST_NO_CXX11_HDR_CHRONO)
|
|
|
|
|
// Old clang can't parse <chrono>:
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_CHRONO
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-12-30 09:15:11 +00:00
|
|
|
#if defined(__clang__) && (BOOST_LIBSTDCXX_VERSION < 40300) && !defined(BOOST_NO_CXX11_NULLPTR)
|
|
|
|
|
# define BOOST_NO_CXX11_NULLPTR
|
|
|
|
|
#endif
|
|
|
|
|
#if defined(__clang__) && (BOOST_LIBSTDCXX_VERSION < 40300) && defined(BOOST_HAS_INT128) && defined(__APPLE_CC__)
|
|
|
|
|
#undef BOOST_HAS_INT128
|
|
|
|
|
#endif
|
|
|
|
|
|
2015-02-21 17:30:56 +00:00
|
|
|
//
|
|
|
|
|
// Headers not present on Solaris with the Oracle compiler:
|
2016-09-04 16:04:08 +00:00
|
|
|
#if defined(__SUNPRO_CC) && (__SUNPRO_CC < 0x5140)
|
2015-02-21 17:30:56 +00:00
|
|
|
#define BOOST_NO_CXX11_HDR_FUTURE
|
|
|
|
|
#define BOOST_NO_CXX11_HDR_FORWARD_LIST
|
|
|
|
|
#define BOOST_NO_CXX11_HDR_ATOMIC
|
2015-08-18 18:09:15 +01:00
|
|
|
// shared_ptr is present, but is not convertible to bool
|
|
|
|
|
// which causes all kinds of problems especially in Boost.Thread
|
|
|
|
|
// but probably elsewhere as well.
|
|
|
|
|
#define BOOST_NO_CXX11_SMART_PTR
|
2015-02-21 17:30:56 +00:00
|
|
|
#endif
|
|
|
|
|
|
2014-10-08 18:58:15 +01:00
|
|
|
#if (!defined(_GLIBCXX_HAS_GTHREADS) || !defined(_GLIBCXX_USE_C99_STDINT_TR1))
|
|
|
|
|
// Headers not always available:
|
|
|
|
|
# ifndef BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
|
|
|
|
|
# endif
|
|
|
|
|
# ifndef BOOST_NO_CXX11_HDR_MUTEX
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_MUTEX
|
|
|
|
|
# endif
|
|
|
|
|
# ifndef BOOST_NO_CXX11_HDR_THREAD
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_THREAD
|
|
|
|
|
# endif
|
2015-06-09 08:32:28 -04:00
|
|
|
# ifndef BOOST_NO_CXX14_HDR_SHARED_MUTEX
|
|
|
|
|
# define BOOST_NO_CXX14_HDR_SHARED_MUTEX
|
|
|
|
|
# endif
|
2014-10-08 18:58:15 +01:00
|
|
|
#endif
|
|
|
|
|
|
2022-11-06 18:45:30 +00:00
|
|
|
#if (!defined(_GTHREAD_USE_MUTEX_TIMEDLOCK) || (_GTHREAD_USE_MUTEX_TIMEDLOCK == 0)) && !defined(BOOST_NO_CXX11_HDR_MUTEX) && (__GNUC__ < 6)
|
2014-10-08 18:58:15 +01:00
|
|
|
// Timed mutexes are not always available:
|
|
|
|
|
# define BOOST_NO_CXX11_HDR_MUTEX
|
|
|
|
|
#endif
|
|
|
|
|
|
2009-05-15 17:08:26 +00:00
|
|
|
// --- end ---
|