sgi.hpp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. // (C) Copyright John Maddock 2001 - 2003.
  2. // (C) Copyright Darin Adler 2001.
  3. // (C) Copyright Jens Maurer 2001 - 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. // See http://www.boost.org for most recent version.
  8. // generic SGI STL:
  9. #if !defined(__STL_CONFIG_H)
  10. # include <boost/config/no_tr1/utility.hpp>
  11. # if !defined(__STL_CONFIG_H)
  12. # error "This is not the SGI STL!"
  13. # endif
  14. #endif
  15. //
  16. // No std::iterator traits without partial specialisation:
  17. //
  18. #if !defined(__STL_CLASS_PARTIAL_SPECIALIZATION)
  19. # define BOOST_NO_STD_ITERATOR_TRAITS
  20. #endif
  21. //
  22. // No std::stringstream with gcc < 3
  23. //
  24. #if defined(__GNUC__) && (__GNUC__ < 3) && \
  25. ((__GNUC_MINOR__ < 95) || (__GNUC_MINOR__ == 96)) && \
  26. !defined(__STL_USE_NEW_IOSTREAMS) || \
  27. defined(__APPLE_CC__)
  28. // Note that we only set this for GNU C++ prior to 2.95 since the
  29. // latest patches for that release do contain a minimal <sstream>
  30. // If you are running a 2.95 release prior to 2.95.3 then this will need
  31. // setting, but there is no way to detect that automatically (other
  32. // than by running the configure script).
  33. // Also, the unofficial GNU C++ 2.96 included in RedHat 7.1 doesn't
  34. // have <sstream>.
  35. # define BOOST_NO_STRINGSTREAM
  36. #endif
  37. //
  38. // Assume no std::locale without own iostreams (this may be an
  39. // incorrect assumption in some cases):
  40. //
  41. #if !defined(__SGI_STL_OWN_IOSTREAMS) && !defined(__STL_USE_NEW_IOSTREAMS)
  42. # define BOOST_NO_STD_LOCALE
  43. #endif
  44. //
  45. // Original native SGI streams have non-standard std::messages facet:
  46. //
  47. #if defined(__sgi) && (_COMPILER_VERSION <= 650) && !defined(__SGI_STL_OWN_IOSTREAMS)
  48. # define BOOST_NO_STD_LOCALE
  49. #endif
  50. //
  51. // SGI's new iostreams have missing "const" in messages<>::open
  52. //
  53. #if defined(__sgi) && (_COMPILER_VERSION <= 740) && defined(__STL_USE_NEW_IOSTREAMS)
  54. # define BOOST_NO_STD_MESSAGES
  55. #endif
  56. //
  57. // No template iterator constructors, or std::allocator
  58. // without member templates:
  59. //
  60. #if !defined(__STL_MEMBER_TEMPLATES)
  61. # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
  62. # define BOOST_NO_STD_ALLOCATOR
  63. #endif
  64. //
  65. // We always have SGI style hash_set, hash_map, and slist:
  66. //
  67. #define BOOST_HAS_HASH
  68. #define BOOST_HAS_SLIST
  69. //
  70. // If this is GNU libstdc++2, then no <limits> and no std::wstring:
  71. //
  72. #if (defined(__GNUC__) && (__GNUC__ < 3))
  73. # include <string>
  74. # if defined(__BASTRING__)
  75. # define BOOST_NO_LIMITS
  76. // Note: <boost/limits.hpp> will provide compile-time constants
  77. # undef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
  78. # define BOOST_NO_STD_WSTRING
  79. # endif
  80. #endif
  81. //
  82. // There is no standard iterator unless we have namespace support:
  83. //
  84. #if !defined(__STL_USE_NAMESPACES)
  85. # define BOOST_NO_STD_ITERATOR
  86. #endif
  87. //
  88. // Intrinsic type_traits support.
  89. // The SGI STL has it's own __type_traits class, which
  90. // has intrinsic compiler support with SGI's compilers.
  91. // Whatever map SGI style type traits to boost equivalents:
  92. //
  93. #define BOOST_HAS_SGI_TYPE_TRAITS
  94. // C++0x headers not yet implemented
  95. //
  96. # define BOOST_NO_0X_HDR_ARRAY
  97. # define BOOST_NO_0X_HDR_CHRONO
  98. # define BOOST_NO_0X_HDR_CODECVT
  99. # define BOOST_NO_0X_HDR_CONCEPTS
  100. # define BOOST_NO_0X_HDR_CONDITION_VARIABLE
  101. # define BOOST_NO_0X_HDR_CONTAINER_CONCEPTS
  102. # define BOOST_NO_0X_HDR_FORWARD_LIST
  103. # define BOOST_NO_0X_HDR_FUTURE
  104. # define BOOST_NO_0X_HDR_INITIALIZER_LIST
  105. # define BOOST_NO_0X_HDR_ITERATOR_CONCEPTS
  106. # define BOOST_NO_0X_HDR_MEMORY_CONCEPTS
  107. # define BOOST_NO_0X_HDR_MUTEX
  108. # define BOOST_NO_0X_HDR_RANDOM
  109. # define BOOST_NO_0X_HDR_RATIO
  110. # define BOOST_NO_0X_HDR_REGEX
  111. # define BOOST_NO_0X_HDR_SYSTEM_ERROR
  112. # define BOOST_NO_0X_HDR_THREAD
  113. # define BOOST_NO_0X_HDR_TUPLE
  114. # define BOOST_NO_0X_HDR_TYPE_TRAITS
  115. # define BOOST_NO_STD_UNORDERED // deprecated; see following
  116. # define BOOST_NO_0X_HDR_UNORDERED_MAP
  117. # define BOOST_NO_0X_HDR_UNORDERED_SET
  118. #define BOOST_STDLIB "SGI standard library"