[857] | 1 | // (C) Copyright John Maddock 2001 - 2003.
|
---|
| 2 | // (C) Copyright Jens Maurer 2001.
|
---|
| 3 | // (C) Copyright David Abrahams 2003.
|
---|
| 4 | // Use, modification and distribution are subject to the
|
---|
| 5 | // Boost Software License, Version 1.0. (See accompanying file
|
---|
| 6 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
---|
| 7 |
|
---|
| 8 | // See http://www.boost.org for most recent version.
|
---|
| 9 |
|
---|
| 10 | // Rogue Wave std lib:
|
---|
| 11 |
|
---|
| 12 | #if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)
|
---|
| 13 | # include <utility>
|
---|
| 14 | # if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)
|
---|
| 15 | # error This is not the Rogue Wave standard library
|
---|
| 16 | # endif
|
---|
| 17 | #endif
|
---|
| 18 | //
|
---|
| 19 | // figure out a consistent version number:
|
---|
| 20 | //
|
---|
| 21 | #ifndef _RWSTD_VER
|
---|
| 22 | # define BOOST_RWSTD_VER 0x010000
|
---|
| 23 | #elif _RWSTD_VER < 0x010000
|
---|
| 24 | # define BOOST_RWSTD_VER (_RWSTD_VER << 8)
|
---|
| 25 | #else
|
---|
| 26 | # define BOOST_RWSTD_VER _RWSTD_VER
|
---|
| 27 | #endif
|
---|
| 28 |
|
---|
| 29 | #ifndef _RWSTD_VER
|
---|
| 30 | # define BOOST_STDLIB "Rogue Wave standard library version (Unknown version)"
|
---|
| 31 | #else
|
---|
| 32 | # define BOOST_STDLIB "Rogue Wave standard library version " BOOST_STRINGIZE(_RWSTD_VER)
|
---|
| 33 | #endif
|
---|
| 34 |
|
---|
| 35 | //
|
---|
| 36 | // Prior to version 2.2.0 the primary template for std::numeric_limits
|
---|
| 37 | // does not have compile time constants, even though specializations of that
|
---|
| 38 | // template do:
|
---|
| 39 | //
|
---|
| 40 | #if BOOST_RWSTD_VER < 0x020200
|
---|
| 41 | # define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
---|
| 42 | #endif
|
---|
| 43 |
|
---|
| 44 | // Sun CC 5.5 patch 113817-07 adds long long specialization, but does not change the
|
---|
| 45 | // library version number (http://sunsolve6.sun.com/search/document.do?assetkey=1-21-113817):
|
---|
| 46 | #if BOOST_RWSTD_VER <= 0x020101 && (!defined(__SUNPRO_CC) || (__SUNPRO_CC < 0x550))
|
---|
| 47 | # define BOOST_NO_LONG_LONG_NUMERIC_LIMITS
|
---|
| 48 | # endif
|
---|
| 49 |
|
---|
| 50 | //
|
---|
| 51 | // Borland version of numeric_limits lacks __int64 specialisation:
|
---|
| 52 | //
|
---|
| 53 | #ifdef __BORLANDC__
|
---|
| 54 | # define BOOST_NO_MS_INT64_NUMERIC_LIMITS
|
---|
| 55 | #endif
|
---|
| 56 |
|
---|
| 57 | //
|
---|
| 58 | // No std::iterator if it can't figure out default template args:
|
---|
| 59 | //
|
---|
| 60 | #if defined(_RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || defined(RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || (BOOST_RWSTD_VER < 0x020000)
|
---|
| 61 | # define BOOST_NO_STD_ITERATOR
|
---|
| 62 | #endif
|
---|
| 63 |
|
---|
| 64 | //
|
---|
| 65 | // No iterator traits without partial specialization:
|
---|
| 66 | //
|
---|
| 67 | #if defined(_RWSTD_NO_CLASS_PARTIAL_SPEC) || defined(RWSTD_NO_CLASS_PARTIAL_SPEC)
|
---|
| 68 | # define BOOST_NO_STD_ITERATOR_TRAITS
|
---|
| 69 | #endif
|
---|
| 70 |
|
---|
| 71 | //
|
---|
| 72 | // Prior to version 2.0, std::auto_ptr was buggy, and there were no
|
---|
| 73 | // new-style iostreams, and no conformant std::allocator:
|
---|
| 74 | //
|
---|
| 75 | #if (BOOST_RWSTD_VER < 0x020000)
|
---|
| 76 | # define BOOST_NO_AUTO_PTR
|
---|
| 77 | # define BOOST_NO_STRINGSTREAM
|
---|
| 78 | # define BOOST_NO_STD_ALLOCATOR
|
---|
| 79 | # define BOOST_NO_STD_LOCALE
|
---|
| 80 | #endif
|
---|
| 81 |
|
---|
| 82 | //
|
---|
| 83 | // No template iterator constructors without member template support:
|
---|
| 84 | //
|
---|
| 85 | #if defined(RWSTD_NO_MEMBER_TEMPLATES) || defined(_RWSTD_NO_MEMBER_TEMPLATES)
|
---|
| 86 | # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
|
---|
| 87 | #endif
|
---|
| 88 |
|
---|
| 89 | //
|
---|
| 90 | // RW defines _RWSTD_ALLOCATOR if the allocator is conformant and in use
|
---|
| 91 | // (the or _HPACC_ part is a hack - the library seems to define _RWSTD_ALLOCATOR
|
---|
| 92 | // on HP aCC systems even though the allocator is in fact broken):
|
---|
| 93 | //
|
---|
| 94 | #if !defined(_RWSTD_ALLOCATOR) || (defined(__HP_aCC) && __HP_aCC <= 33100)
|
---|
| 95 | # define BOOST_NO_STD_ALLOCATOR
|
---|
| 96 | #endif
|
---|
| 97 |
|
---|
| 98 | //
|
---|
| 99 | // If we have a std::locale, we still may not have std::use_facet:
|
---|
| 100 | //
|
---|
| 101 | #if defined(_RWSTD_NO_TEMPLATE_ON_RETURN_TYPE) && !defined(BOOST_NO_STD_LOCALE)
|
---|
| 102 | # define BOOST_NO_STD_USE_FACET
|
---|
| 103 | # define BOOST_HAS_TWO_ARG_USE_FACET
|
---|
| 104 | #endif
|
---|
| 105 |
|
---|
| 106 | //
|
---|
| 107 | // There's no std::distance prior to version 2, or without
|
---|
| 108 | // partial specialization support:
|
---|
| 109 | //
|
---|
| 110 | #if (BOOST_RWSTD_VER < 0x020000) || defined(_RWSTD_NO_CLASS_PARTIAL_SPEC)
|
---|
| 111 | #define BOOST_NO_STD_DISTANCE
|
---|
| 112 | #endif
|
---|
| 113 |
|
---|
| 114 | //
|
---|
| 115 | // Some versions of the rogue wave library don't have assignable
|
---|
| 116 | // OutputIterators:
|
---|
| 117 | //
|
---|
| 118 | #if BOOST_RWSTD_VER < 0x020100
|
---|
| 119 | # define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN
|
---|
| 120 | #endif
|
---|
| 121 |
|
---|
| 122 | //
|
---|
| 123 | // Disable BOOST_HAS_LONG_LONG when the library has no support for it.
|
---|
| 124 | //
|
---|
| 125 | #if !defined(_RWSTD_LONG_LONG) && defined(BOOST_HAS_LONG_LONG)
|
---|
| 126 | # undef BOOST_HAS_LONG_LONG
|
---|
| 127 | #endif
|
---|