summaryrefslogtreecommitdiff
path: root/config_cxx.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-08-06 07:20:27 -0400
committerJeffrey Walton <noloader@gmail.com>2020-08-06 07:20:27 -0400
commita046d249c11b05a82c0d50c6f2c694f59ce73662 (patch)
tree171c0cf963818d81097515e16b1b6cf62b297c21 /config_cxx.h
parentfdb977a2c691f87903f4db4c25882b4c95bea406 (diff)
downloadcryptopp-git-a046d249c11b05a82c0d50c6f2c694f59ce73662.tar.gz
Add CRYPTOPP_CXX11_INITIALIZER_LIST
Diffstat (limited to 'config_cxx.h')
-rw-r--r--config_cxx.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/config_cxx.h b/config_cxx.h
index ff921e46..0bdf2114 100644
--- a/config_cxx.h
+++ b/config_cxx.h
@@ -149,6 +149,13 @@
# define CRYPTOPP_CXX11_ALIGNOF 1
#endif // alignof
+// initializer lists: MS at VS2013 (18.00); GCC at 4.4; Clang at 3.1; Intel 14.0; SunCC 5.13.
+#if (CRYPTOPP_MSC_VERSION >= 1800) || (CRYPTOPP_LLVM_CLANG_VERSION >= 30100) || \
+ (CRYPTOPP_APPLE_CLANG_VERSION >= 40000) || (__INTEL_COMPILER >= 1400) || \
+ (CRYPTOPP_GCC_VERSION >= 40400) || (__SUNPRO_CC >= 0x5130)
+# define CRYPTOPP_CXX11_INITIALIZER_LIST 1
+#endif // alignas
+
// lambdas: MS at VS2012 (17.00); GCC at 4.9; Clang at 3.3; Intel 12.0; SunCC 5.14.
#if (CRYPTOPP_MSC_VERSION >= 1700) || __has_feature(cxx_lambdas) || \
(__INTEL_COMPILER >= 1200) || (CRYPTOPP_GCC_VERSION >= 40900) || (__SUNPRO_CC >= 0x5140)