summaryrefslogtreecommitdiff
path: root/config_cxx.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-07-01 08:17:22 -0400
committerJeffrey Walton <noloader@gmail.com>2019-07-01 08:17:22 -0400
commit36e8dfeca83efd1d63b11664545a3bb396a051b8 (patch)
tree24ec52be574386ad67d98a9293708a54512dbbb7 /config_cxx.h
parent18d5e5528f480885d3373d200dffc8cd6beeca81 (diff)
downloadcryptopp-git-36e8dfeca83efd1d63b11664545a3bb396a051b8.tar.gz
Add define for C++11 deleted functions
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 b687dcfd..d58f945f 100644
--- a/config_cxx.h
+++ b/config_cxx.h
@@ -97,6 +97,13 @@
# define CRYPTOPP_CXX11_DYNAMIC_INIT 1
#endif // Dynamic Initialization compilers
+// deleted functions: MS at VS2013 (18.00); GCC at 4.3; Clang at 2.9; Intel 12.1; SunCC 5.13.
+#if (CRYPTOPP_MSC_VERSION >= 1800) || (CRYPTOPP_LLVM_CLANG_VERSION >= 20900) || \
+ (CRYPTOPP_APPLE_CLANG_VERSION >= 40000) || (__INTEL_COMPILER >= 1210) || \
+ (CRYPTOPP_GCC_VERSION >= 40300) || (CRYPTOPP_GCC_VERSION >= 40300) || (__SUNPRO_CC >= 0x5130)
+# define CRYPTOPP_CXX11_DELETED_FUNCTIONS 1
+#endif // deleted functions
+
// alignof/alignas: MS at VS2015 (19.00); GCC at 4.8; Clang at 3.0; Intel 15.0; SunCC 5.13.
#if (CRYPTOPP_MSC_VERSION >= 1900) || __has_feature(cxx_alignas) || \
(__INTEL_COMPILER >= 1500) || (CRYPTOPP_GCC_VERSION >= 40800) || (__SUNPRO_CC >= 0x5130)