roguewave.hpp

Go to the documentation of this file.
00001 //  (C) Copyright John Maddock 2001 - 2003. 
00002 //  (C) Copyright Jens Maurer 2001. 
00003 //  (C) Copyright David Abrahams 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 //  Rogue Wave std lib:
00011 
00012 #if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)
00013 #  include <utility>
00014 #  if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)
00015 #     error This is not the Rogue Wave standard library
00016 #  endif
00017 #endif
00018 //
00019 // figure out a consistent version number:
00020 //
00021 #ifndef _RWSTD_VER
00022 #  define BOOST_RWSTD_VER 0x010000
00023 #elif _RWSTD_VER < 0x010000
00024 #  define BOOST_RWSTD_VER (_RWSTD_VER << 8)
00025 #else
00026 #  define BOOST_RWSTD_VER _RWSTD_VER
00027 #endif
00028 
00029 #ifndef _RWSTD_VER
00030 #  define BOOST_STDLIB "Rogue Wave standard library version (Unknown version)"
00031 #else
00032 #  define BOOST_STDLIB "Rogue Wave standard library version " BOOST_STRINGIZE(_RWSTD_VER)
00033 #endif
00034 
00035 //
00036 // Prior to version 2.2.0 the primary template for std::numeric_limits
00037 // does not have compile time constants, even though specializations of that
00038 // template do:
00039 //
00040 #if BOOST_RWSTD_VER < 0x020200
00041 #  define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
00042 #endif
00043 
00044 // Sun CC 5.5 patch 113817-07 adds long long specialization, but does not change the
00045 // library version number (http://sunsolve6.sun.com/search/document.do?assetkey=1-21-113817):
00046 #if BOOST_RWSTD_VER <= 0x020101 && (!defined(__SUNPRO_CC) || (__SUNPRO_CC < 0x550))
00047 #  define BOOST_NO_LONG_LONG_NUMERIC_LIMITS
00048 # endif
00049 
00050 //
00051 // Borland version of numeric_limits lacks __int64 specialisation:
00052 //
00053 #ifdef __BORLANDC__
00054 #  define BOOST_NO_MS_INT64_NUMERIC_LIMITS
00055 #endif
00056 
00057 //
00058 // No std::iterator if it can't figure out default template args:
00059 //
00060 #if defined(_RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || defined(RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || (BOOST_RWSTD_VER < 0x020000)
00061 #  define BOOST_NO_STD_ITERATOR
00062 #endif
00063 
00064 //
00065 // No iterator traits without partial specialization:
00066 //
00067 #if defined(_RWSTD_NO_CLASS_PARTIAL_SPEC) || defined(RWSTD_NO_CLASS_PARTIAL_SPEC)
00068 #  define BOOST_NO_STD_ITERATOR_TRAITS
00069 #endif
00070 
00071 //
00072 // Prior to version 2.0, std::auto_ptr was buggy, and there were no
00073 // new-style iostreams, and no conformant std::allocator:
00074 //
00075 #if (BOOST_RWSTD_VER < 0x020000)
00076 #  define BOOST_NO_AUTO_PTR
00077 #  define BOOST_NO_STRINGSTREAM
00078 #  define BOOST_NO_STD_ALLOCATOR
00079 #  define BOOST_NO_STD_LOCALE
00080 #endif
00081 
00082 //
00083 // No template iterator constructors without member template support:
00084 //
00085 #if defined(RWSTD_NO_MEMBER_TEMPLATES) || defined(_RWSTD_NO_MEMBER_TEMPLATES)
00086 #  define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
00087 #endif
00088 
00089 //
00090 // RW defines _RWSTD_ALLOCATOR if the allocator is conformant and in use
00091 // (the or _HPACC_ part is a hack - the library seems to define _RWSTD_ALLOCATOR
00092 // on HP aCC systems even though the allocator is in fact broken):
00093 //
00094 #if !defined(_RWSTD_ALLOCATOR) || (defined(__HP_aCC) && __HP_aCC <= 33100)
00095 #  define BOOST_NO_STD_ALLOCATOR
00096 #endif
00097 
00098 //
00099 // If we have a std::locale, we still may not have std::use_facet:
00100 //
00101 #if defined(_RWSTD_NO_TEMPLATE_ON_RETURN_TYPE) && !defined(BOOST_NO_STD_LOCALE)
00102 #  define BOOST_NO_STD_USE_FACET
00103 #  define BOOST_HAS_TWO_ARG_USE_FACET
00104 #endif
00105 
00106 //
00107 // There's no std::distance prior to version 2, or without
00108 // partial specialization support:
00109 //
00110 #if (BOOST_RWSTD_VER < 0x020000) || defined(_RWSTD_NO_CLASS_PARTIAL_SPEC)
00111     #define BOOST_NO_STD_DISTANCE
00112 #endif
00113 
00114 //
00115 // Some versions of the rogue wave library don't have assignable
00116 // OutputIterators:
00117 //
00118 #if BOOST_RWSTD_VER < 0x020100
00119 #  define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN
00120 #endif
00121 
00122 //
00123 // Disable BOOST_HAS_LONG_LONG when the library has no support for it.
00124 //
00125 #if !defined(_RWSTD_LONG_LONG) && defined(BOOST_HAS_LONG_LONG)
00126 #  undef BOOST_HAS_LONG_LONG
00127 #endif

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