From 5ae79afd89c9ad357e63a48815d66dedbf3c2821 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 7 Jan 2018 21:35:12 -0500 Subject: [PATCH] Add CRYPTOPP_CXX11_LAMBDA for N2927 (v1.1) (GH #558) --- config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.h b/config.h index 873158bf..209c035f 100644 --- a/config.h +++ b/config.h @@ -1010,6 +1010,12 @@ NAMESPACE_END # define CRYPTOPP_CXX11_ALIGNOF 1 #endif // alignof +// 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_lambda) || \ + (__INTEL_COMPILER >= 1200) || (CRYPTOPP_GCC_VERSION >= 40900) || (__SUNPRO_CC >= 0x5140) +# define CRYPTOPP_CXX11_LAMBDA 1 +#endif // lambdas + // noexcept: MS at VS2015 (19.00); GCC at 4.6; Clang at 3.0; Intel 14.0; SunCC 5.13. #if (CRYPTOPP_MSC_VERSION >= 1900) || __has_feature(cxx_noexcept) || \ (__INTEL_COMPILER >= 1400) || (CRYPTOPP_GCC_VERSION >= 40600) || (__SUNPRO_CC >= 0x5130)