CRYPTOPP_CXX11_STATIC_ASSERT -> CRYPTOPP_CXX14_STATIC_ASSERT
WHoops, this is a C++14 featurepull/867/head
parent
002e794ae2
commit
f5881d121a
|
|
@ -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
2
misc.h
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue