CRYPTOPP_CXX11_STATIC_ASSERT -> CRYPTOPP_CXX14_STATIC_ASSERT

WHoops, this is a C++14 feature
This commit is contained in:
Jeffrey Walton 2019-07-14 19:02:58 -04:00
parent 002e794ae2
commit f5881d121a
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 6 additions and 4 deletions

View File

@ -172,13 +172,15 @@
# define CRYPTOPP_CXX11_NULLPTR 1
#endif // nullptr_t compilers
#endif // CRYPTOPP_CXX11
// ***************** C++14 and above ********************
// Extended static_assert with one argument
#if (__cpp_static_assert >= 201411)
# define CRYPTOPP_CXX11_STATIC_ASSERT 1
# define CRYPTOPP_CXX14_STATIC_ASSERT 1
#endif // static_assert
#endif // CRYPTOPP_CXX11
// ***************** C++17 and above ********************
// C++17 is available

2
misc.h
View File

@ -147,7 +147,7 @@ class Integer;
/// a <tt>CompileAssert</tt> structure is used. When the structure is used
/// a negative-sized array triggers the assert at compile time.
# define CRYPTOPP_COMPILE_ASSERT(expr) { ... }
#elif defined(CRYPTOPP_CXX11_STATIC_ASSERT)
#elif defined(CRYPTOPP_CXX14_STATIC_ASSERT)
# define CRYPTOPP_COMPILE_ASSERT(expr) static_assert(expr)
#else // CRYPTOPP_DOXYGEN_PROCESSING
template <bool b>