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 <utility>
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 
00080 //
00081 // If this is GNU libstdc++2, then no <limits> and no std::wstring:
00082 //
00083 #if (defined(__GNUC__) && (__GNUC__ < 3))
00084 #  include <string>
00085 #  if defined(__BASTRING__)
00086 #     define BOOST_NO_LIMITS
00087 // Note: <sysc/packages/boost/limits.hpp> will provide compile-time constants
00088 #     undef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
00089 #     define BOOST_NO_STD_WSTRING
00090 #  endif
00091 #endif
00092 
00093 //
00094 // There is no standard iterator unless we have namespace support:
00095 //
00096 #if !defined(__STL_USE_NAMESPACES)
00097 #  define BOOST_NO_STD_ITERATOR
00098 #endif
00099 
00100 //
00101 // Intrinsic type_traits support.
00102 // The SGI STL has it's own __type_traits class, which
00103 // has intrinsic compiler support with SGI's compilers.
00104 // Whatever map SGI style type traits to boost equivalents:
00105 //
00106 #define BOOST_HAS_SGI_TYPE_TRAITS
00107 
00108 #define BOOST_STDLIB "SGI standard library"
00109 
00110 
00111 

Generated on Wed Jan 21 15:32:09 2009 for SystemC by  doxygen 1.5.5