sgi.hpp
Go to the documentation of this file.
00001 //  (C) Copyright John Maddock 2001 - 2003. 
00002 //  (C) Copyright Darin Adler 2001. 
00003 //  (C) Copyright Jens Maurer 2001 - 2003. 
00004 //  Use, modification and distribution are subject to the 
00005 //  Boost Software License, Version 1.0. (See accompanying file 
00006 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
00007 
00008 //  See http://www.boost.org for most recent version.
00009 
00010 //  generic SGI STL:
00011 
00012 #if !defined(__STL_CONFIG_H)
00013 #  include <boost/config/no_tr1/utility.hpp>
00014 #  if !defined(__STL_CONFIG_H)
00015 #      error "This is not the SGI STL!"
00016 #  endif
00017 #endif
00018 
00019 //
00020 // No std::iterator traits without partial specialisation:
00021 //
00022 #if !defined(__STL_CLASS_PARTIAL_SPECIALIZATION)
00023 #  define BOOST_NO_STD_ITERATOR_TRAITS
00024 #endif
00025 
00026 //
00027 // No std::stringstream with gcc < 3
00028 //
00029 #if defined(__GNUC__) && (__GNUC__ < 3) && \
00030      ((__GNUC_MINOR__ < 95) || (__GNUC_MINOR__ == 96)) && \
00031      !defined(__STL_USE_NEW_IOSTREAMS) || \
00032    defined(__APPLE_CC__)
00033    // Note that we only set this for GNU C++ prior to 2.95 since the
00034    // latest patches for that release do contain a minimal <sstream>
00035    // If you are running a 2.95 release prior to 2.95.3 then this will need
00036    // setting, but there is no way to detect that automatically (other
00037    // than by running the configure script).
00038    // Also, the unofficial GNU C++ 2.96 included in RedHat 7.1 doesn't
00039    // have <sstream>.
00040 #  define BOOST_NO_STRINGSTREAM
00041 #endif
00042 
00043 //
00044 // Assume no std::locale without own iostreams (this may be an
00045 // incorrect assumption in some cases):
00046 //
00047 #if !defined(__SGI_STL_OWN_IOSTREAMS) && !defined(__STL_USE_NEW_IOSTREAMS)
00048 #  define BOOST_NO_STD_LOCALE
00049 #endif
00050 
00051 //
00052 // Original native SGI streams have non-standard std::messages facet:
00053 //
00054 #if defined(__sgi) && (_COMPILER_VERSION <= 650) && !defined(__SGI_STL_OWN_IOSTREAMS)
00055 #  define BOOST_NO_STD_LOCALE
00056 #endif
00057 
00058 //
00059 // SGI's new iostreams have missing "const" in messages<>::open
00060 //
00061 #if defined(__sgi) && (_COMPILER_VERSION <= 740) && defined(__STL_USE_NEW_IOSTREAMS)
00062 #  define BOOST_NO_STD_MESSAGES
00063 #endif
00064 
00065 //
00066 // No template iterator constructors, or std::allocator
00067 // without member templates:
00068 //
00069 #if !defined(__STL_MEMBER_TEMPLATES)
00070 #  define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
00071 #  define BOOST_NO_STD_ALLOCATOR
00072 #endif
00073 
00074 //
00075 // We always have SGI style hash_set, hash_map, and slist:
00076 //
00077 #define BOOST_HAS_HASH
00078 #define BOOST_HAS_SLIST
00079 #define BOOST_NO_STD_UNORDERED
00080 
00081 //
00082 // If this is GNU libstdc++2, then no <limits> and no std::wstring:
00083 //
00084 #if (defined(__GNUC__) && (__GNUC__ < 3))
00085 #  include <string>
00086 #  if defined(__BASTRING__)
00087 #     define BOOST_NO_LIMITS
00088 // Note: <boost/limits.hpp> will provide compile-time constants
00089 #     undef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
00090 #     define BOOST_NO_STD_WSTRING
00091 #  endif
00092 #endif
00093 
00094 //
00095 // There is no standard iterator unless we have namespace support:
00096 //
00097 #if !defined(__STL_USE_NAMESPACES)
00098 #  define BOOST_NO_STD_ITERATOR
00099 #endif
00100 
00101 //
00102 // Intrinsic type_traits support.
00103 // The SGI STL has it's own __type_traits class, which
00104 // has intrinsic compiler support with SGI's compilers.
00105 // Whatever map SGI style type traits to boost equivalents:
00106 //
00107 #define BOOST_HAS_SGI_TYPE_TRAITS
00108 
00109 #define BOOST_STDLIB "SGI standard library"
00110 
00111 
00112 


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:29