dinkumware.hpp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. // (C) Copyright John Maddock 2001 - 2003.
  2. // (C) Copyright Jens Maurer 2001.
  3. // (C) Copyright Peter Dimov 2001.
  4. // (C) Copyright David Abrahams 2002.
  5. // (C) Copyright Guillaume Melquiond 2003.
  6. // Use, modification and distribution are subject to the
  7. // Boost Software License, Version 1.0. (See accompanying file
  8. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. // See http://www.boost.org for most recent version.
  10. // Dinkumware standard library config:
  11. #if !defined(_YVALS) && !defined(_CPPLIB_VER)
  12. #include <boost/config/no_tr1/utility.hpp>
  13. #if !defined(_YVALS) && !defined(_CPPLIB_VER)
  14. #error This is not the Dinkumware lib!
  15. #endif
  16. #endif
  17. #if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306)
  18. // full dinkumware 3.06 and above
  19. // fully conforming provided the compiler supports it:
  20. # if !(defined(_GLOBAL_USING) && (_GLOBAL_USING+0 > 0)) && !defined(__BORLANDC__) && !defined(_STD) && !(defined(__ICC) && (__ICC >= 700)) // can be defined in yvals.h
  21. # define BOOST_NO_STDC_NAMESPACE
  22. # endif
  23. # if !(defined(_HAS_MEMBER_TEMPLATES_REBIND) && (_HAS_MEMBER_TEMPLATES_REBIND+0 > 0)) && !(defined(_MSC_VER) && (_MSC_VER > 1300)) && defined(BOOST_MSVC)
  24. # define BOOST_NO_STD_ALLOCATOR
  25. # endif
  26. # define BOOST_HAS_PARTIAL_STD_ALLOCATOR
  27. # if defined(BOOST_MSVC) && (BOOST_MSVC < 1300)
  28. // if this lib version is set up for vc6 then there is no std::use_facet:
  29. # define BOOST_NO_STD_USE_FACET
  30. # define BOOST_HAS_TWO_ARG_USE_FACET
  31. // C lib functions aren't in namespace std either:
  32. # define BOOST_NO_STDC_NAMESPACE
  33. // and nor is <exception>
  34. # define BOOST_NO_EXCEPTION_STD_NAMESPACE
  35. # endif
  36. // There's no numeric_limits<long long> support unless _LONGLONG is defined:
  37. # if !defined(_LONGLONG) && (_CPPLIB_VER <= 310)
  38. # define BOOST_NO_MS_INT64_NUMERIC_LIMITS
  39. # endif
  40. // 3.06 appears to have (non-sgi versions of) <hash_set> & <hash_map>,
  41. // and no <slist> at all
  42. #else
  43. # define BOOST_MSVC_STD_ITERATOR 1
  44. # define BOOST_NO_STD_ITERATOR
  45. # define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
  46. # define BOOST_NO_STD_ALLOCATOR
  47. # define BOOST_NO_STDC_NAMESPACE
  48. # define BOOST_NO_STD_USE_FACET
  49. # define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN
  50. # define BOOST_HAS_MACRO_USE_FACET
  51. # ifndef _CPPLIB_VER
  52. // Updated Dinkum library defines this, and provides
  53. // its own min and max definitions.
  54. # define BOOST_NO_STD_MIN_MAX
  55. # define BOOST_NO_MS_INT64_NUMERIC_LIMITS
  56. # endif
  57. #endif
  58. //
  59. // std extension namespace is stdext for vc7.1 and later,
  60. // the same applies to other compilers that sit on top
  61. // of vc7.1 (Intel and Comeau):
  62. //
  63. #if defined(_MSC_VER) && (_MSC_VER >= 1310) && !defined(__BORLANDC__)
  64. # define BOOST_STD_EXTENSION_NAMESPACE stdext
  65. #endif
  66. #if (defined(_MSC_VER) && (_MSC_VER <= 1300) && !defined(__BORLANDC__)) || !defined(_CPPLIB_VER) || (_CPPLIB_VER < 306)
  67. // if we're using a dinkum lib that's
  68. // been configured for VC6/7 then there is
  69. // no iterator traits (true even for icl)
  70. # define BOOST_NO_STD_ITERATOR_TRAITS
  71. #endif
  72. #if defined(__ICL) && (__ICL < 800) && defined(_CPPLIB_VER) && (_CPPLIB_VER <= 310)
  73. // Intel C++ chokes over any non-trivial use of <locale>
  74. // this may be an overly restrictive define, but regex fails without it:
  75. # define BOOST_NO_STD_LOCALE
  76. #endif
  77. // C++0x headers implemented in 520 (as shipped by Microsoft)
  78. //
  79. #if !defined(_CPPLIB_VER) || _CPPLIB_VER < 520
  80. # define BOOST_NO_0X_HDR_ARRAY
  81. # define BOOST_NO_0X_HDR_CODECVT
  82. # define BOOST_NO_0X_HDR_FORWARD_LIST
  83. # define BOOST_NO_0X_HDR_INITIALIZER_LIST
  84. # define BOOST_NO_0X_HDR_RANDOM
  85. # define BOOST_NO_0X_HDR_REGEX
  86. # define BOOST_NO_0X_HDR_SYSTEM_ERROR
  87. # define BOOST_NO_0X_HDR_TYPE_TRAITS
  88. # define BOOST_NO_STD_UNORDERED // deprecated; see following
  89. # define BOOST_NO_0X_HDR_UNORDERED_MAP
  90. # define BOOST_NO_0X_HDR_UNORDERED_SET
  91. #endif
  92. // C++0x headers not yet implemented
  93. //
  94. # define BOOST_NO_0X_HDR_CHRONO
  95. # define BOOST_NO_0X_HDR_CONCEPTS
  96. # define BOOST_NO_0X_HDR_CONDITION_VARIABLE
  97. # define BOOST_NO_0X_HDR_CONTAINER_CONCEPTS
  98. # define BOOST_NO_0X_HDR_FUTURE
  99. # define BOOST_NO_0X_HDR_ITERATOR_CONCEPTS
  100. # define BOOST_NO_0X_HDR_MEMORY_CONCEPTS
  101. # define BOOST_NO_0X_HDR_MUTEX
  102. # define BOOST_NO_0X_HDR_RATIO
  103. # define BOOST_NO_0X_HDR_THREAD
  104. # define BOOST_NO_0X_HDR_TUPLE
  105. #ifdef _CPPLIB_VER
  106. # define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER
  107. #else
  108. # define BOOST_DINKUMWARE_STDLIB 1
  109. #endif
  110. #ifdef _CPPLIB_VER
  111. # define BOOST_STDLIB "Dinkumware standard library version " BOOST_STRINGIZE(_CPPLIB_VER)
  112. #else
  113. # define BOOST_STDLIB "Dinkumware standard library version 1.x"
  114. #endif