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

pull/477/head
Wyatt O'Day 2017-08-29 11:24:36 -04:00
parent c06995a71b
commit dc16834c1d
1 changed files with 1 additions and 1 deletions

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);