common_edg.hpp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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_OVERRIDE
  97. #define BOOST_NO_CXX11_THREAD_LOCAL
  98. #define BOOST_NO_CXX11_UNRESTRICTED_UNION
  99. // C++ 14:
  100. #if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304)
  101. # define BOOST_NO_CXX14_AGGREGATE_NSDMI
  102. #endif
  103. #if !defined(__cpp_binary_literals) || (__cpp_binary_literals < 201304)
  104. # define BOOST_NO_CXX14_BINARY_LITERALS
  105. #endif
  106. #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
  107. # define BOOST_NO_CXX14_CONSTEXPR
  108. #endif
  109. #if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304)
  110. # define BOOST_NO_CXX14_DECLTYPE_AUTO
  111. #endif
  112. #if (__cplusplus < 201304) // There's no SD6 check for this....
  113. # define BOOST_NO_CXX14_DIGIT_SEPARATORS
  114. #endif
  115. #if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304)
  116. # define BOOST_NO_CXX14_GENERIC_LAMBDAS
  117. #endif
  118. #if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304)
  119. # define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
  120. #endif
  121. #if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304)
  122. # define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
  123. #endif
  124. #if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304)
  125. # define BOOST_NO_CXX14_VARIABLE_TEMPLATES
  126. #endif
  127. // C++17
  128. #if !defined(__cpp_structured_bindings) || (__cpp_structured_bindings < 201606)
  129. # define BOOST_NO_CXX17_STRUCTURED_BINDINGS
  130. #endif
  131. #if !defined(__cpp_inline_variables) || (__cpp_inline_variables < 201606)
  132. # define BOOST_NO_CXX17_INLINE_VARIABLES
  133. #endif
  134. #if !defined(__cpp_fold_expressions) || (__cpp_fold_expressions < 201603)
  135. # define BOOST_NO_CXX17_FOLD_EXPRESSIONS
  136. #endif
  137. #if !defined(__cpp_if_constexpr) || (__cpp_if_constexpr < 201606)
  138. # define BOOST_NO_CXX17_IF_CONSTEXPR
  139. #endif
  140. #ifdef c_plusplus
  141. // EDG has "long long" in non-strict mode
  142. // However, some libraries have insufficient "long long" support
  143. // #define BOOST_HAS_LONG_LONG
  144. #endif