summaryrefslogtreecommitdiff
path: root/config_cxx.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-07-14 18:28:51 -0400
committerJeffrey Walton <noloader@gmail.com>2019-07-14 18:28:51 -0400
commit002e794ae2300d68fadac0b49fc9e15e896f8f5f (patch)
tree030c74db5f0d25b4d908b501c428f2cd2412e078 /config_cxx.h
parent5de1089c8c207a3c5738fb9542a9fe547c8fb200 (diff)
downloadcryptopp-git-002e794ae2300d68fadac0b49fc9e15e896f8f5f.tar.gz
Use C++ static_assert from N3928 when available
Diffstat (limited to 'config_cxx.h')
-rw-r--r--config_cxx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/config_cxx.h b/config_cxx.h
index 34e6503f..7d6bd001 100644
--- a/config_cxx.h
+++ b/config_cxx.h
@@ -172,6 +172,11 @@
# define CRYPTOPP_CXX11_NULLPTR 1
#endif // nullptr_t compilers
+// Extended static_assert with one argument
+#if (__cpp_static_assert >= 201411)
+# define CRYPTOPP_CXX11_STATIC_ASSERT 1
+#endif // static_assert
+
#endif // CRYPTOPP_CXX11
// ***************** C++17 and above ********************