Fix compilation of secblock.h under Visual Studio 2010 (which only has partial C++ 2011 support). (#477)

This commit is contained in:
Wyatt O'Day 2017-08-29 14:55:01 -04:00 committed by Jeffrey Walton
parent 8624587943
commit 5149237a5d

View File

@ -56,7 +56,7 @@ public:
//! \since Crypto++ 6.0
#if defined(CRYPTOPP_DOXYGEN_PROCESSING)
static const size_type ELEMS_MAX = ...;
#elif defined(CRYPTOPP_CXX11)
#elif defined(CRYPTOPP_CXX11_ENUM)
enum : size_type {ELEMS_MAX = SIZE_MAX/sizeof(T)};
#else
static const size_type ELEMS_MAX = SIZE_MAX/sizeof(T);