1 // The Art of C++ / Sequences
2 // Copyright (c) 2015 Daniel Frey
3 
4 #ifndef TAOCPP_SEQUENCES_INCLUDE_CONFIG_HPP
5 #define TAOCPP_SEQUENCES_INCLUDE_CONFIG_HPP
6 
7 #if __cplusplus >= 201402L
8 # define TAOCPP_USE_STD_INTEGER_SEQUENCE
9 #endif
10 
11 #if (__cplusplus >= 201402L) && defined(_LIBCPP_VERSION)
12 # define TAOCPP_USE_STD_MAKE_INTEGER_SEQUENCE
13 #endif
14 
15 #if defined(__cpp_fold_expressions)
16 # define TAOCPP_FOLD_EXPRESSIONS
17 #elif __cplusplus > 201402L
18 # if defined(__apple_build_version__) && (__clang_major__ >= 7)
19 #  define TAOCPP_FOLD_EXPRESSIONS
20 # elif defined(__clang__) && ((__clang_major__ > 3) || ((__clang_major__ == 3) && (__clang_minor__ >= 6)))
21 #  define TAOCPP_FOLD_EXPRESSIONS
22 # endif
23 #endif
24 
25 #endif // TAOCPP_SEQUENCES_INCLUDE_CONFIG_HPP
26