sunpro_cc.hpp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // (C) Copyright John Maddock 2001.
  2. // (C) Copyright Jens Maurer 2001 - 2003.
  3. // (C) Copyright Peter Dimov 2002.
  4. // (C) Copyright Aleksey Gurtovoy 2002 - 2003.
  5. // (C) Copyright David Abrahams 2002.
  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. // Sun C++ compiler setup:
  11. # if __SUNPRO_CC <= 0x500
  12. # define BOOST_NO_MEMBER_TEMPLATES
  13. # define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
  14. # endif
  15. # if (__SUNPRO_CC <= 0x520)
  16. //
  17. // Sunpro 5.2 and earler:
  18. //
  19. // although sunpro 5.2 supports the syntax for
  20. // inline initialization it often gets the value
  21. // wrong, especially where the value is computed
  22. // from other constants (J Maddock 6th May 2001)
  23. # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
  24. // Although sunpro 5.2 supports the syntax for
  25. // partial specialization, it often seems to
  26. // bind to the wrong specialization. Better
  27. // to disable it until suppport becomes more stable
  28. // (J Maddock 6th May 2001).
  29. # define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
  30. # endif
  31. # if (__SUNPRO_CC <= 0x530)
  32. // Requesting debug info (-g) with Boost.Python results
  33. // in an internal compiler error for "static const"
  34. // initialized in-class.
  35. // >> Assertion: (../links/dbg_cstabs.cc, line 611)
  36. // while processing ../test.cpp at line 0.
  37. // (Jens Maurer according to Gottfried Ganssauge 04 Mar 2002)
  38. # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
  39. // SunPro 5.3 has better support for partial specialization,
  40. // but breaks when compiling std::less<shared_ptr<T> >
  41. // (Jens Maurer 4 Nov 2001).
  42. // std::less specialization fixed as reported by George
  43. // Heintzelman; partial specialization re-enabled
  44. // (Peter Dimov 17 Jan 2002)
  45. //# define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
  46. // integral constant expressions with 64 bit numbers fail
  47. # define BOOST_NO_INTEGRAL_INT64_T
  48. # endif
  49. # if (__SUNPRO_CC < 0x570)
  50. # define BOOST_NO_TEMPLATE_TEMPLATES
  51. // see http://lists.boost.org/MailArchives/boost/msg47184.php
  52. // and http://lists.boost.org/MailArchives/boost/msg47220.php
  53. # define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
  54. # define BOOST_NO_SFINAE
  55. # define BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS
  56. # endif
  57. # if (__SUNPRO_CC <= 0x580)
  58. # define BOOST_NO_IS_ABSTRACT
  59. # endif
  60. //
  61. // Issues that effect all known versions:
  62. //
  63. #define BOOST_NO_TWO_PHASE_NAME_LOOKUP
  64. #define BOOST_NO_ADL_BARRIER
  65. //
  66. // C++0x features
  67. //
  68. #if(__SUNPRO_CC >= 0x590)
  69. # define BOOST_HAS_LONG_LONG
  70. #else
  71. # define BOOST_NO_LONG_LONG
  72. #endif
  73. #define BOOST_NO_AUTO_DECLARATIONS
  74. #define BOOST_NO_AUTO_MULTIDECLARATIONS
  75. #define BOOST_NO_CHAR16_T
  76. #define BOOST_NO_CHAR32_T
  77. #define BOOST_NO_CONCEPTS
  78. #define BOOST_NO_CONSTEXPR
  79. #define BOOST_NO_DECLTYPE
  80. #define BOOST_NO_DEFAULTED_FUNCTIONS
  81. #define BOOST_NO_DELETED_FUNCTIONS
  82. #define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
  83. #define BOOST_NO_EXTERN_TEMPLATE
  84. #define BOOST_NO_INITIALIZER_LISTS
  85. #define BOOST_NO_LAMBDAS
  86. #define BOOST_NO_NULLPTR
  87. #define BOOST_NO_RAW_LITERALS
  88. #define BOOST_NO_RVALUE_REFERENCES
  89. #define BOOST_NO_SCOPED_ENUMS
  90. #define BOOST_NO_STATIC_ASSERT
  91. #define BOOST_NO_TEMPLATE_ALIASES
  92. #define BOOST_NO_UNICODE_LITERALS
  93. #define BOOST_NO_VARIADIC_TEMPLATES
  94. //
  95. // Version
  96. //
  97. #define BOOST_COMPILER "Sun compiler version " BOOST_STRINGIZE(__SUNPRO_CC)
  98. //
  99. // versions check:
  100. // we don't support sunpro prior to version 4:
  101. #if __SUNPRO_CC < 0x400
  102. #error "Compiler not supported or configured - please reconfigure"
  103. #endif
  104. //
  105. // last known and checked version is 0x590:
  106. #if (__SUNPRO_CC > 0x590)
  107. # if defined(BOOST_ASSERT_CONFIG)
  108. # error "Unknown compiler version - please run the configure tests and report the results"
  109. # endif
  110. #endif