common_edg.hpp 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. // (C) Copyright John Maddock 2001 - 2002.
  2. // (C) Copyright Jens Maurer 2001.
  3. // (C) Copyright David Abrahams 2002.
  4. // (C) Copyright Aleksey Gurtovoy 2002.
  5. // (C) Copyright Markus Schoepflin 2005.
  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. //
  11. // Options common to all edg based compilers.
  12. //
  13. // This is included from within the individual compiler mini-configs.
  14. #ifndef __EDG_VERSION__
  15. # error This file requires that __EDG_VERSION__ be defined.
  16. #endif
  17. #if (__EDG_VERSION__ <= 238)
  18. # define BOOST_NO_INTEGRAL_INT64_T
  19. # define BOOST_NO_SFINAE
  20. #endif
  21. #if (__EDG_VERSION__ <= 240)
  22. # define BOOST_NO_VOID_RETURNS
  23. #endif
  24. #if (__EDG_VERSION__ <= 241) && !defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP)
  25. # define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
  26. #endif
  27. #if (__EDG_VERSION__ <= 244) && !defined(BOOST_NO_TEMPLATE_TEMPLATES)
  28. # define BOOST_NO_TEMPLATE_TEMPLATES
  29. #endif
  30. #if (__EDG_VERSION__ < 300) && !defined(BOOST_NO_IS_ABSTRACT)
  31. # define BOOST_NO_IS_ABSTRACT
  32. #endif
  33. #if (__EDG_VERSION__ <= 303) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
  34. # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
  35. #endif
  36. // See also kai.hpp which checks a Kai-specific symbol for EH
  37. # if !defined(__KCC) && !defined(__EXCEPTIONS) && !defined(BOOST_NO_EXCEPTIONS)
  38. # define BOOST_NO_EXCEPTIONS
  39. # endif
  40. # if !defined(__NO_LONG_LONG)
  41. # define BOOST_HAS_LONG_LONG
  42. # else
  43. # define BOOST_NO_LONG_LONG
  44. # endif
  45. // Not sure what version was the first to support #pragma once, but
  46. // different EDG-based compilers (e.g. Intel) supported it for ages.
  47. // Add a proper version check if it causes problems.
  48. #define BOOST_HAS_PRAGMA_ONCE
  49. //
  50. // C++0x features
  51. //
  52. // See above for BOOST_NO_LONG_LONG
  53. //
  54. #if (__EDG_VERSION__ < 310)
  55. # define BOOST_NO_CXX11_EXTERN_TEMPLATE
  56. #endif
  57. #if (__EDG_VERSION__ <= 310)
  58. // No support for initializer lists
  59. # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
  60. #endif
  61. #if (__EDG_VERSION__ < 400)
  62. # define BOOST_NO_CXX11_VARIADIC_MACROS
  63. #endif
  64. #define BOOST_NO_CXX11_AUTO_DECLARATIONS
  65. #define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
  66. #define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
  67. #define BOOST_NO_CXX11_DELETED_FUNCTIONS
  68. #define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
  69. #define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
  70. #define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
  71. #define BOOST_NO_CXX11_NOEXCEPT
  72. #define BOOST_NO_CXX11_NULLPTR
  73. #define BOOST_NO_CXX11_RVALUE_REFERENCES
  74. #define BOOST_NO_CXX11_SCOPED_ENUMS
  75. #define BOOST_NO_SFINAE_EXPR
  76. #define BOOST_NO_CXX11_SFINAE_EXPR
  77. #define BOOST_NO_CXX11_STATIC_ASSERT
  78. #define BOOST_NO_CXX11_TEMPLATE_ALIASES
  79. #define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
  80. #define BOOST_NO_CXX11_ALIGNAS
  81. #define BOOST_NO_CXX11_ALIGNOF
  82. #define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
  83. #define BOOST_NO_CXX11_INLINE_NAMESPACES
  84. #define BOOST_NO_CXX11_REF_QUALIFIERS
  85. #define BOOST_NO_CXX11_FINAL
  86. #define BOOST_NO_CXX11_OVERRIDE
  87. #define BOOST_NO_CXX11_THREAD_LOCAL
  88. #define BOOST_NO_CXX11_UNRESTRICTED_UNION
  89. //__cpp_decltype 200707 possibly?
  90. #define BOOST_NO_CXX11_DECLTYPE
  91. #define BOOST_NO_CXX11_DECLTYPE_N3276
  92. #if !defined(__cpp_unicode_characters) || (__cpp_unicode_characters < 200704)
  93. # define BOOST_NO_CXX11_CHAR16_T
  94. # define BOOST_NO_CXX11_CHAR32_T
  95. #endif
  96. #if !defined(__cpp_unicode_literals) || (__cpp_unicode_literals < 200710)
  97. # define BOOST_NO_CXX11_UNICODE_LITERALS
  98. #endif
  99. #if !defined(__cpp_user_defined_literals) || (__cpp_user_defined_literals < 200809)
  100. # define BOOST_NO_CXX11_USER_DEFINED_LITERALS
  101. #endif
  102. #if !defined(__cpp_variadic_templates) || (__cpp_variadic_templates < 200704)
  103. # define BOOST_NO_CXX11_VARIADIC_TEMPLATES
  104. #endif
  105. #if !defined(__cpp_constexpr) || (__cpp_constexpr < 200907)
  106. # define BOOST_NO_CXX11_CONSTEXPR
  107. #endif
  108. #if !defined(__cpp_lambdas) || (__cpp_lambdas < 200907)
  109. # define BOOST_NO_CXX11_LAMBDAS
  110. #endif
  111. #if !defined(__cpp_range_based_for) || (__cpp_range_based_for < 200710)
  112. # define BOOST_NO_CXX11_RANGE_BASED_FOR
  113. #endif
  114. #if !defined(__cpp_raw_strings) || (__cpp_raw_strings < 200610)
  115. # define BOOST_NO_CXX11_RAW_LITERALS
  116. #endif
  117. // C++ 14:
  118. #if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304)
  119. # define BOOST_NO_CXX14_AGGREGATE_NSDMI
  120. #endif
  121. #if !defined(__cpp_binary_literals) || (__cpp_binary_literals < 201304)
  122. # define BOOST_NO_CXX14_BINARY_LITERALS
  123. #endif
  124. #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
  125. # define BOOST_NO_CXX14_CONSTEXPR
  126. #endif
  127. #if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304)
  128. # define BOOST_NO_CXX14_DECLTYPE_AUTO
  129. #endif
  130. #if (__cplusplus < 201304) // There's no SD6 check for this....
  131. # define BOOST_NO_CXX14_DIGIT_SEPARATORS
  132. #endif
  133. #if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304)
  134. # define BOOST_NO_CXX14_GENERIC_LAMBDAS
  135. #endif
  136. #if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304)
  137. # define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
  138. #endif
  139. #if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304)
  140. # define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
  141. #endif
  142. #if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304)
  143. # define BOOST_NO_CXX14_VARIABLE_TEMPLATES
  144. #endif
  145. // C++17
  146. #if !defined(__cpp_structured_bindings) || (__cpp_structured_bindings < 201606)
  147. # define BOOST_NO_CXX17_STRUCTURED_BINDINGS
  148. #endif
  149. #if !defined(__cpp_inline_variables) || (__cpp_inline_variables < 201606)
  150. # define BOOST_NO_CXX17_INLINE_VARIABLES
  151. #endif
  152. #if !defined(__cpp_fold_expressions) || (__cpp_fold_expressions < 201603)
  153. # define BOOST_NO_CXX17_FOLD_EXPRESSIONS
  154. #endif
  155. #if !defined(__cpp_if_constexpr) || (__cpp_if_constexpr < 201606)
  156. # define BOOST_NO_CXX17_IF_CONSTEXPR
  157. #endif
  158. #if !defined(__cpp_nontype_template_parameter_auto) || (__cpp_nontype_template_parameter_auto < 201606)
  159. # define BOOST_NO_CXX17_AUTO_NONTYPE_TEMPLATE_PARAMS
  160. #endif
  161. #ifdef c_plusplus
  162. // EDG has "long long" in non-strict mode
  163. // However, some libraries have insufficient "long long" support
  164. // #define BOOST_HAS_LONG_LONG
  165. #endif