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)
10 // See http://www.boost.org for most recent version.
13 // Options common to all edg based compilers.
15 // This is included from within the individual compiler mini-configs.
17 #ifndef __EDG_VERSION__
18 # error This file requires that __EDG_VERSION__ be defined.
21 #if (__EDG_VERSION__ <= 238)
22 # define BOOST_NO_INTEGRAL_INT64_T
23 # define BOOST_NO_SFINAE
26 #if (__EDG_VERSION__ <= 240)
27 # define BOOST_NO_VOID_RETURNS
30 #if (__EDG_VERSION__ <= 241) && !defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP)
31 # define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
34 #if (__EDG_VERSION__ <= 244) && !defined(BOOST_NO_TEMPLATE_TEMPLATES)
35 # define BOOST_NO_TEMPLATE_TEMPLATES
38 #if (__EDG_VERSION__ < 300) && !defined(BOOST_NO_IS_ABSTRACT)
39 # define BOOST_NO_IS_ABSTRACT
42 #if (__EDG_VERSION__ <= 303) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
43 # define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
46 // See also kai.hpp which checks a Kai-specific symbol for EH
47 # if !defined(__KCC) && !defined(__EXCEPTIONS) && !defined(BOOST_NO_EXCEPTIONS)
48 # define BOOST_NO_EXCEPTIONS
51 # if !defined(__NO_LONG_LONG)
52 # define BOOST_HAS_LONG_LONG
54 # define BOOST_NO_LONG_LONG
57 // Not sure what version was the first to support #pragma once, but
58 // different EDG-based compilers (e.g. Intel) supported it for ages.
59 // Add a proper version check if it causes problems.
60 #define BOOST_HAS_PRAGMA_ONCE
65 // See above for BOOST_NO_LONG_LONG
67 #if (__EDG_VERSION__ < 310)
68 # define BOOST_NO_CXX11_EXTERN_TEMPLATE
70 #if (__EDG_VERSION__ <= 310)
71 // No support for initializer lists
72 # define BOOST_NO_CXX11_HDR_INITIALIZER_LIST
74 #if (__EDG_VERSION__ < 400)
75 # define BOOST_NO_CXX11_VARIADIC_MACROS
78 #define BOOST_NO_CXX11_AUTO_DECLARATIONS
79 #define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
80 #define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
81 #define BOOST_NO_CXX11_DELETED_FUNCTIONS
82 #define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
83 #define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
84 #define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
85 #define BOOST_NO_CXX11_NOEXCEPT
86 #define BOOST_NO_CXX11_NULLPTR
87 #define BOOST_NO_CXX11_RVALUE_REFERENCES
88 #define BOOST_NO_CXX11_SCOPED_ENUMS
89 #define BOOST_NO_SFINAE_EXPR
90 #define BOOST_NO_CXX11_SFINAE_EXPR
91 #define BOOST_NO_CXX11_STATIC_ASSERT
92 #define BOOST_NO_CXX11_TEMPLATE_ALIASES
93 #define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
94 #define BOOST_NO_CXX11_ALIGNAS
95 #define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
96 #define BOOST_NO_CXX11_INLINE_NAMESPACES
97 #define BOOST_NO_CXX11_REF_QUALIFIERS
98 #define BOOST_NO_CXX11_FINAL
99 #define BOOST_NO_CXX11_OVERRIDE
100 #define BOOST_NO_CXX11_THREAD_LOCAL
101 #define BOOST_NO_CXX11_UNRESTRICTED_UNION
103 //__cpp_decltype 200707 possibly?
104 #define BOOST_NO_CXX11_DECLTYPE
105 #define BOOST_NO_CXX11_DECLTYPE_N3276
107 #if !defined(__cpp_unicode_characters) || (__cpp_unicode_characters < 200704)
108 # define BOOST_NO_CXX11_CHAR16_T
109 # define BOOST_NO_CXX11_CHAR32_T
111 #if !defined(__cpp_unicode_literals) || (__cpp_unicode_literals < 200710)
112 # define BOOST_NO_CXX11_UNICODE_LITERALS
114 #if !defined(__cpp_user_defined_literals) || (__cpp_user_defined_literals < 200809)
115 # define BOOST_NO_CXX11_USER_DEFINED_LITERALS
117 #if !defined(__cpp_variadic_templates) || (__cpp_variadic_templates < 200704)
118 # define BOOST_NO_CXX11_VARIADIC_TEMPLATES
120 #if !defined(__cpp_constexpr) || (__cpp_constexpr < 200907)
121 # define BOOST_NO_CXX11_CONSTEXPR
123 #if !defined(__cpp_lambdas) || (__cpp_lambdas < 200907)
124 # define BOOST_NO_CXX11_LAMBDAS
126 #if !defined(__cpp_range_based_for) || (__cpp_range_based_for < 200710)
127 # define BOOST_NO_CXX11_RANGE_BASED_FOR
129 #if !defined(__cpp_raw_strings) || (__cpp_raw_strings < 200610)
130 # define BOOST_NO_CXX11_RAW_LITERALS
135 #if !defined(__cpp_aggregate_nsdmi) || (__cpp_aggregate_nsdmi < 201304)
136 # define BOOST_NO_CXX14_AGGREGATE_NSDMI
138 #if !defined(__cpp_binary_literals) || (__cpp_binary_literals < 201304)
139 # define BOOST_NO_CXX14_BINARY_LITERALS
141 #if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
142 # define BOOST_NO_CXX14_CONSTEXPR
144 #if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304)
145 # define BOOST_NO_CXX14_DECLTYPE_AUTO
147 #if (__cplusplus < 201304) // There's no SD6 check for this....
148 # define BOOST_NO_CXX14_DIGIT_SEPARATORS
150 #if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304)
151 # define BOOST_NO_CXX14_GENERIC_LAMBDAS
153 #if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304)
154 # define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
156 #if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304)
157 # define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
159 #if !defined(__cpp_variable_templates) || (__cpp_variable_templates < 201304)
160 # define BOOST_NO_CXX14_VARIABLE_TEMPLATES
164 #if !defined(__cpp_structured_bindings) || (__cpp_structured_bindings < 201606)
165 # define BOOST_NO_CXX17_STRUCTURED_BINDINGS
167 #if !defined(__cpp_inline_variables) || (__cpp_inline_variables < 201606)
168 # define BOOST_NO_CXX17_INLINE_VARIABLES
170 #if !defined(__cpp_fold_expressions) || (__cpp_fold_expressions < 201603)
171 # define BOOST_NO_CXX17_FOLD_EXPRESSIONS
174 #if !defined(__cpp_if_constexpr) || (__cpp_if_constexpr < 201606)
175 # define BOOST_NO_CXX17_IF_CONSTEXPR
179 // EDG has "long long" in non-strict mode
180 // However, some libraries have insufficient "long long" support
181 // #define BOOST_HAS_LONG_LONG