sl@0: // (C) Copyright John Maddock 2001 - 2003. sl@0: // (C) Copyright Darin Adler 2001. sl@0: // (C) Copyright Jens Maurer 2001 - 2003. sl@0: // Use, modification and distribution are subject to the sl@0: // Boost Software License, Version 1.0. (See accompanying file sl@0: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) sl@0: sl@0: // See http://www.boost.org for most recent version. sl@0: sl@0: // generic SGI STL: sl@0: sl@0: #if !defined(__STL_CONFIG_H) sl@0: # include sl@0: # if !defined(__STL_CONFIG_H) sl@0: # error "This is not the SGI STL!" sl@0: # endif sl@0: #endif sl@0: sl@0: // sl@0: // No std::iterator traits without partial specialisation: sl@0: // sl@0: #if !defined(__STL_CLASS_PARTIAL_SPECIALIZATION) sl@0: # define BOOST_NO_STD_ITERATOR_TRAITS sl@0: #endif sl@0: sl@0: // sl@0: // No std::stringstream with gcc < 3 sl@0: // sl@0: #if defined(__GNUC__) && (__GNUC__ < 3) && \ sl@0: ((__GNUC_MINOR__ < 95) || (__GNUC_MINOR__ == 96)) && \ sl@0: !defined(__STL_USE_NEW_IOSTREAMS) || \ sl@0: defined(__APPLE_CC__) sl@0: // Note that we only set this for GNU C++ prior to 2.95 since the sl@0: // latest patches for that release do contain a minimal sl@0: // If you are running a 2.95 release prior to 2.95.3 then this will need sl@0: // setting, but there is no way to detect that automatically (other sl@0: // than by running the configure script). sl@0: // Also, the unofficial GNU C++ 2.96 included in RedHat 7.1 doesn't sl@0: // have . sl@0: # define BOOST_NO_STRINGSTREAM sl@0: #endif sl@0: sl@0: // sl@0: // Assume no std::locale without own iostreams (this may be an sl@0: // incorrect assumption in some cases): sl@0: // sl@0: #if !defined(__SGI_STL_OWN_IOSTREAMS) && !defined(__STL_USE_NEW_IOSTREAMS) sl@0: # define BOOST_NO_STD_LOCALE sl@0: #endif sl@0: sl@0: // sl@0: // Original native SGI streams have non-standard std::messages facet: sl@0: // sl@0: #if defined(__sgi) && (_COMPILER_VERSION <= 650) && !defined(__SGI_STL_OWN_IOSTREAMS) sl@0: # define BOOST_NO_STD_LOCALE sl@0: #endif sl@0: sl@0: // sl@0: // SGI's new iostreams have missing "const" in messages<>::open sl@0: // sl@0: #if defined(__sgi) && (_COMPILER_VERSION <= 740) && defined(__STL_USE_NEW_IOSTREAMS) sl@0: # define BOOST_NO_STD_MESSAGES sl@0: #endif sl@0: sl@0: // sl@0: // No template iterator constructors, or std::allocator sl@0: // without member templates: sl@0: // sl@0: #if !defined(__STL_MEMBER_TEMPLATES) sl@0: # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS sl@0: # define BOOST_NO_STD_ALLOCATOR sl@0: #endif sl@0: sl@0: // sl@0: // We always have SGI style hash_set, hash_map, and slist: sl@0: // sl@0: #define BOOST_HAS_HASH sl@0: #define BOOST_HAS_SLIST sl@0: sl@0: // sl@0: // If this is GNU libstdc++2, then no and no std::wstring: sl@0: // sl@0: #if (defined(__GNUC__) && (__GNUC__ < 3)) sl@0: # include sl@0: # if defined(__BASTRING__) sl@0: # define BOOST_NO_LIMITS sl@0: // Note: will provide compile-time constants sl@0: # undef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS sl@0: # define BOOST_NO_STD_WSTRING sl@0: # endif sl@0: #endif sl@0: sl@0: // sl@0: // There is no standard iterator unless we have namespace support: sl@0: // sl@0: #if !defined(__STL_USE_NAMESPACES) sl@0: # define BOOST_NO_STD_ITERATOR sl@0: #endif sl@0: sl@0: // sl@0: // Intrinsic type_traits support. sl@0: // The SGI STL has it's own __type_traits class, which sl@0: // has intrinsic compiler support with SGI's compilers. sl@0: // Whatever map SGI style type traits to boost equivalents: sl@0: // sl@0: #define BOOST_HAS_SGI_TYPE_TRAITS sl@0: sl@0: #define BOOST_STDLIB "SGI standard library" sl@0: sl@0: sl@0: