Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:30:08

0001 //  (C) Copyright John Maddock 2001 - 2003. 
0002 //  (C) Copyright Darin Adler 2001. 
0003 //  (C) Copyright Jens Maurer 2001 - 2003. 
0004 //  Use, modification and distribution are subject to the 
0005 //  Boost Software License, Version 1.0. (See accompanying file 
0006 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0007 
0008 //  See http://www.boost.org for most recent version.
0009 
0010 //  generic SGI STL:
0011 
0012 #if !defined(__STL_CONFIG_H)
0013 #  include <boost/config/no_tr1/utility.hpp>
0014 #  if !defined(__STL_CONFIG_H)
0015 #      error "This is not the SGI STL!"
0016 #  endif
0017 #endif
0018 
0019 //
0020 // No std::iterator traits without partial specialisation:
0021 //
0022 #if !defined(__STL_CLASS_PARTIAL_SPECIALIZATION)
0023 #  define BOOST_NO_STD_ITERATOR_TRAITS
0024 #endif
0025 
0026 //
0027 // No std::stringstream with gcc < 3
0028 //
0029 #if defined(__GNUC__) && (__GNUC__ < 3) && \
0030      ((__GNUC_MINOR__ < 95) || (__GNUC_MINOR__ == 96)) && \
0031      !defined(__STL_USE_NEW_IOSTREAMS) || \
0032    defined(__APPLE_CC__)
0033    // Note that we only set this for GNU C++ prior to 2.95 since the
0034    // latest patches for that release do contain a minimal <sstream>
0035    // If you are running a 2.95 release prior to 2.95.3 then this will need
0036    // setting, but there is no way to detect that automatically (other
0037    // than by running the configure script).
0038    // Also, the unofficial GNU C++ 2.96 included in RedHat 7.1 doesn't
0039    // have <sstream>.
0040 #  define BOOST_NO_STRINGSTREAM
0041 #endif
0042 
0043 // Apple doesn't seem to reliably defined a *unix* macro
0044 #if !defined(CYGWIN) && (  defined(__unix__)  \
0045                         || defined(__unix)    \
0046                         || defined(unix)      \
0047                         || defined(__APPLE__) \
0048                         || defined(__APPLE)   \
0049                         || defined(APPLE))
0050 #  include <unistd.h>
0051 #endif
0052 
0053 
0054 //
0055 // Assume no std::locale without own iostreams (this may be an
0056 // incorrect assumption in some cases):
0057 //
0058 #if !defined(__SGI_STL_OWN_IOSTREAMS) && !defined(__STL_USE_NEW_IOSTREAMS)
0059 #  define BOOST_NO_STD_LOCALE
0060 #endif
0061 
0062 //
0063 // Original native SGI streams have non-standard std::messages facet:
0064 //
0065 #if defined(__sgi) && (_COMPILER_VERSION <= 650) && !defined(__SGI_STL_OWN_IOSTREAMS)
0066 #  define BOOST_NO_STD_LOCALE
0067 #endif
0068 
0069 //
0070 // SGI's new iostreams have missing "const" in messages<>::open
0071 //
0072 #if defined(__sgi) && (_COMPILER_VERSION <= 740) && defined(__STL_USE_NEW_IOSTREAMS)
0073 #  define BOOST_NO_STD_MESSAGES
0074 #endif
0075 
0076 //
0077 // No template iterator constructors, or std::allocator
0078 // without member templates:
0079 //
0080 #if !defined(__STL_MEMBER_TEMPLATES)
0081 #  define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
0082 #  define BOOST_NO_STD_ALLOCATOR
0083 #endif
0084 
0085 //
0086 // We always have SGI style hash_set, hash_map, and slist:
0087 //
0088 #define BOOST_HAS_HASH
0089 #define BOOST_HAS_SLIST
0090 
0091 //
0092 // If this is GNU libstdc++2, then no <limits> and no std::wstring:
0093 //
0094 #if (defined(__GNUC__) && (__GNUC__ < 3))
0095 #  include <string>
0096 #  if defined(__BASTRING__)
0097 #     define BOOST_NO_LIMITS
0098 // Note: <boost/limits.hpp> will provide compile-time constants
0099 #     undef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
0100 #     define BOOST_NO_STD_WSTRING
0101 #  endif
0102 #endif
0103 
0104 //
0105 // There is no standard iterator unless we have namespace support:
0106 //
0107 #if !defined(__STL_USE_NAMESPACES)
0108 #  define BOOST_NO_STD_ITERATOR
0109 #endif
0110 
0111 //
0112 // Intrinsic type_traits support.
0113 // The SGI STL has it's own __type_traits class, which
0114 // has intrinsic compiler support with SGI's compilers.
0115 // Whatever map SGI style type traits to boost equivalents:
0116 //
0117 #define BOOST_HAS_SGI_TYPE_TRAITS
0118 
0119 //  C++0x headers not yet implemented
0120 //
0121 #  define BOOST_NO_CXX11_HDR_ARRAY
0122 #  define BOOST_NO_CXX11_HDR_CHRONO
0123 #  define BOOST_NO_CXX11_HDR_CODECVT
0124 #  define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
0125 #  define BOOST_NO_CXX11_HDR_FORWARD_LIST
0126 #  define BOOST_NO_CXX11_HDR_FUTURE
0127 #  define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
0128 #  define BOOST_NO_CXX11_HDR_MUTEX
0129 #  define BOOST_NO_CXX11_HDR_RANDOM
0130 #  define BOOST_NO_CXX11_HDR_RATIO
0131 #  define BOOST_NO_CXX11_HDR_REGEX
0132 #  define BOOST_NO_CXX11_HDR_SYSTEM_ERROR
0133 #  define BOOST_NO_CXX11_HDR_THREAD
0134 #  define BOOST_NO_CXX11_HDR_TUPLE
0135 #  define BOOST_NO_CXX11_HDR_TYPE_TRAITS
0136 #  define BOOST_NO_CXX11_HDR_TYPEINDEX
0137 #  define BOOST_NO_CXX11_HDR_UNORDERED_MAP
0138 #  define BOOST_NO_CXX11_HDR_UNORDERED_SET
0139 #  define BOOST_NO_CXX11_NUMERIC_LIMITS
0140 #  define BOOST_NO_CXX11_ALLOCATOR
0141 #  define BOOST_NO_CXX11_POINTER_TRAITS
0142 #  define BOOST_NO_CXX11_ATOMIC_SMART_PTR
0143 #  define BOOST_NO_CXX11_SMART_PTR
0144 #  define BOOST_NO_CXX11_HDR_FUNCTIONAL
0145 #  define BOOST_NO_CXX11_HDR_ATOMIC
0146 #  define BOOST_NO_CXX11_STD_ALIGN
0147 #  define BOOST_NO_CXX11_ADDRESSOF
0148 #  define BOOST_NO_CXX11_HDR_EXCEPTION
0149 
0150 #if defined(__has_include)
0151 #if !__has_include(<shared_mutex>)
0152 #  define BOOST_NO_CXX14_HDR_SHARED_MUTEX
0153 #elif __cplusplus < 201402
0154 #  define BOOST_NO_CXX14_HDR_SHARED_MUTEX
0155 #endif
0156 #else
0157 #  define BOOST_NO_CXX14_HDR_SHARED_MUTEX
0158 #endif
0159 
0160 // C++14 features
0161 #  define BOOST_NO_CXX14_STD_EXCHANGE
0162 
0163 // C++17 features
0164 #  define BOOST_NO_CXX17_STD_APPLY
0165 #  define BOOST_NO_CXX17_STD_INVOKE
0166 #  define BOOST_NO_CXX17_ITERATOR_TRAITS
0167 
0168 #define BOOST_STDLIB "SGI standard library"