common_edg.hpp 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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_CHAR16_T
  67. #define BOOST_NO_CXX11_CHAR32_T
  68. #define BOOST_NO_CXX11_CONSTEXPR
  69. #define BOOST_NO_CXX11_DECLTYPE
  70. #define BOOST_NO_CXX11_DECLTYPE_N3276
  71. #define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
  72. #define BOOST_NO_CXX11_DELETED_FUNCTIONS
  73. #define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
  74. #define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
  75. #define BOOST_NO_CXX11_LAMBDAS
  76. #define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
  77. #define BOOST_NO_CXX11_NOEXCEPT
  78. #define BOOST_NO_CXX11_NULLPTR
  79. #define BOOST_NO_CXX11_RANGE_BASED_FOR
  80. #define BOOST_NO_CXX11_RAW_LITERALS
  81. #define BOOST_NO_CXX11_RVALUE_REFERENCES
  82. #define BOOST_NO_CXX11_SCOPED_ENUMS
  83. #define BOOST_NO_SFINAE_EXPR
  84. #define BOOST_NO_CXX11_SFINAE_EXPR
  85. #define BOOST_NO_CXX11_STATIC_ASSERT
  86. #define BOOST_NO_CXX11_TEMPLATE_ALIASES
  87. #define BOOST_NO_CXX11_UNICODE_LITERALS
  88. #define BOOST_NO_CXX11_VARIADIC_TEMPLATES
  89. #define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
  90. #define BOOST_NO_CXX11_USER_DEFINED_LITERALS
  91. #define BOOST_NO_CXX11_ALIGNAS
  92. #define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
  93. #define BOOST_NO_CXX11_INLINE_NAMESPACES
  94. #define BOOST_NO_CXX11_REF_QUALIFIERS
  95. #define BOOST_NO_CXX11_FINAL
  96. #define BOOST_NO_CXX11_THREAD_LOCAL
  97. // C++ 14:
  98. #if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304)
  99. # define BOOST_NO_CXX14_AGGREGATE_NSDMI
  100. #endif
  101. #if !defined(__cpp_binary_literals) || (__cpp_binary_literals < 201304)
  102. # define BOOST_NO_CXX14_BINARY_LITERALS
  103. #endif
  104. #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
  105. # define BOOST_NO_CXX14_CONSTEXPR
  106. #endif
  107. #if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304)
  108. # define BOOST_NO_CXX14_DECLTYPE_AUTO
  109. #endif
  110. #if (__cplusplus < 201304) // There's no SD6 check for this....
  111. # define BOOST_NO_CXX14_DIGIT_SEPARATORS
  112. #endif
  113. #if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304)
  114. # define BOOST_NO_CXX14_GENERIC_LAMBDAS
  115. #endif
  116. #if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304)
  117. # define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
  118. #endif
  119. #if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304)
  120. # define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
  121. #endif
  122. #if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304)
  123. # define BOOST_NO_CXX14_VARIABLE_TEMPLATES
  124. #endif
  125. // C++17
  126. #if !defined(__cpp_structured_bindings) || (__cpp_structured_bindings < 201606)
  127. # define BOOST_NO_CXX17_STRUCTURED_BINDINGS
  128. #endif
  129. #if !defined(__cpp_inline_variables) || (__cpp_inline_variables < 201606)
  130. # define BOOST_NO_CXX17_INLINE_VARIABLES
  131. #endif
  132. #if !defined(__cpp_fold_expressions) || (__cpp_fold_expressions < 201603)
  133. # define BOOST_NO_CXX17_FOLD_EXPRESSIONS
  134. #endif
  135. #if !defined(__cpp_if_constexpr) || (__cpp_if_constexpr < 201606)
  136. # define BOOST_NO_CXX17_IF_CONSTEXPR
  137. #endif
  138. #ifdef c_plusplus
  139. // EDG has "long long" in non-strict mode
  140. // However, some libraries have insufficient "long long" support
  141. // #define BOOST_HAS_LONG_LONG
  142. #endif