Remove CDS_CXX11_EXPLICITLY_DEFAULTED_FUNCTION_SUPPORT macro and emulating code
[libcds.git] / cds / compiler / defs.h
1 //$$CDS-header$$
2
3 #ifndef __CDS_ARH_COMPILER_DEFS_H
4 #define __CDS_ARH_COMPILER_DEFS_H
5
6 /*
7     Required C++11 features:
8     - variadic template [CDS_CXX11_VARIADIC_TEMPLATE_SUPPORT]
9     - template alias [CDS_CXX11_TEMPLATE_ALIAS_SUPPORT]
10     - explicit conversion operator [CDS_CXX11_EXPLICIT_CONVERSION_OPERATOR_SUPPORT]
11     - default template argument for function [CDS_CXX11_DEFAULT_FUNCTION_TEMPLATE_ARGS_SUPPORT]
12     - explicit default functions (=default) [CDS_CXX11_EXPLICITLY_DEFAULTED_FUNCTION_SUPPORT]
13 */
14
15 #if CDS_COMPILER == CDS_COMPILER_MSVC
16 #   include <cds/compiler/vc/defs.h>
17 #elif CDS_COMPILER == CDS_COMPILER_GCC
18 #   include <cds/compiler/gcc/defs.h>
19 #elif CDS_COMPILER == CDS_COMPILER_INTEL
20 #   include <cds/compiler/icl/defs.h>
21 #elif CDS_COMPILER == CDS_COMPILER_CLANG
22 #   include <cds/compiler/clang/defs.h>
23 #elif CDS_COMPILER == CDS_COMPILER_UNKNOWN
24 #   error Unknown compiler. Compilation aborted
25 #else
26 #   error Unknown value of CDS_COMPILER macro
27 #endif
28
29 #ifndef CDS_STDCALL
30 #   define CDS_STDCALL
31 #endif
32
33 #ifndef CDS_EXPORT_API
34 #   define CDS_EXPORT_API
35 #endif
36
37 #endif  // #ifndef __CDS_ARH_COMPILER_DEFS_H